[PATCH] arm:socfpga:soc64: To notify SDM when U-Boot pass control to Linux

From: Dinesh Maniyam dinesh.maniyam@intel.com
Prior U-Boot pass control to Linux, U-Boot will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition.
Signed-off-by: Chin Liang See chin.liang.see@intel.com Signed-off-by: Dinesh Maniyam dinesh.maniyam@intel.com --- arch/arm/mach-socfpga/misc_soc64.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-socfpga/misc_soc64.c b/arch/arm/mach-socfpga/misc_soc64.c index 2acdfad07b..3148eb46a5 100644 --- a/arch/arm/mach-socfpga/misc_soc64.c +++ b/arch/arm/mach-socfpga/misc_soc64.c @@ -89,3 +89,8 @@ void do_bridge_reset(int enable, unsigned int mask)
socfpga_bridges_reset(enable); } + +void arch_preboot_os(void) +{ + mbox_hps_stage_notify(HPS_EXECUTION_STATE_OS); +} \ No newline at end of file -- 2.26.2

From: Dinesh Maniyam dinesh.maniyam@intel.com
Prior U-Boot pass control to Linux, U-Boot will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition.
Signed-off-by: Dinesh Maniyam dinesh.maniyam@intel.com
---
v1->v2 Add space in title --- arch/arm/mach-socfpga/misc_soc64.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-socfpga/misc_soc64.c b/arch/arm/mach-socfpga/misc_soc64.c index 2acdfad07b..3148eb46a5 100644 --- a/arch/arm/mach-socfpga/misc_soc64.c +++ b/arch/arm/mach-socfpga/misc_soc64.c @@ -89,3 +89,8 @@ void do_bridge_reset(int enable, unsigned int mask)
socfpga_bridges_reset(enable); } + +void arch_preboot_os(void) +{ + mbox_hps_stage_notify(HPS_EXECUTION_STATE_OS); +} \ No newline at end of file -- 2.26.2

-----Original Message----- From: Maniyam, Dinesh dinesh.maniyam@intel.com Sent: Friday, 13 May 2022 3:30 pm To: u-boot@lists.denx.de Cc: Vasut, Marek marex@denx.de; Simon Goldschmidt simon.k.r.goldschmidt@gmail.com; Chee, Tien Fong tien.fong.chee@intel.com; Hea, Kok Kiang kok.kiang.hea@intel.com; Gan, Yau Wai yau.wai.gan@intel.com; Kho, Sin Hui sin.hui.kho@intel.com; Lokanathan, Raaj raaj.lokanathan@intel.com; Maniyam, Dinesh dinesh.maniyam@intel.com Subject: [PATCH v2] arm: socfpga: soc64: To notify SDM when U-Boot pass control to Linux
From: Dinesh Maniyam dinesh.maniyam@intel.com
Prior U-Boot pass control to Linux, U-Boot will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition.
Signed-off-by: Dinesh Maniyam dinesh.maniyam@intel.com
v1->v2 Add space in title
arch/arm/mach-socfpga/misc_soc64.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-socfpga/misc_soc64.c b/arch/arm/mach- socfpga/misc_soc64.c index 2acdfad07b..3148eb46a5 100644 --- a/arch/arm/mach-socfpga/misc_soc64.c +++ b/arch/arm/mach-socfpga/misc_soc64.c @@ -89,3 +89,8 @@ void do_bridge_reset(int enable, unsigned int mask)
socfpga_bridges_reset(enable); }
+void arch_preboot_os(void) +{
- mbox_hps_stage_notify(HPS_EXECUTION_STATE_OS);
+} \ No newline at end of file -- 2.26.2
I will need to rework this patch. I will re-submit the next version of the patch.
Regards Dinesh
participants (2)
-
dinesh.maniyam@intel.com
-
Maniyam, Dinesh