Skip to contentSkip to conversation

arch: arm: mach-socfpga: To notify SDM when U-Boot pass control to Linux

PATCH In review Jit Loon Lim 2 participants 2 messages Aug 31, 2022 – Dec 8, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch: arm: mach-socfpga: To notify SDM when U-Boot pass control to Linux

From: Chin Liang See <[email protected]>

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.

---
 arch/arm/mach-socfpga/misc_soc64.c | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach-socfpga/misc_soc64.c +5 -0
index 2acdfad07b..00852d27d9 100644
@@ -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);
+}
Signature · 1 line
2.26.2
#1 lore raw

Hi,

Quoted 38 lines

-----Original Message-----
From: Lim, Jit Loon <[email protected]>
Sent: Wednesday, 31 August, 2022 2:46 PM
To: [email protected]
Cc: Jagan Teki <[email protected]>; Vignesh R <[email protected]>; Vasut, Marek <[email protected]>; Simon <[email protected]>; Chee, Tien Fong <[email protected]>; Hea, Kok Kiang <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Kho, Sin Hui <[email protected]>; Lokanathan, Raaj <[email protected]>; Maniyam, Dinesh <[email protected]>; Ng, Boon Khai <[email protected]>; Yuslaimi, Alif Zakuan <[email protected]>; Chong, Teik Heng <[email protected]>; Zamri, Muhammad Hazim Izzat <[email protected]>; Tang, Sieu Mun <[email protected]>; Lim, Jit Loon <[email protected]>; Chin Liang See <[email protected]>
Subject: [PATCH] arch: arm: mach-socfpga: To notify SDM when U-Boot pass control to Linux

From: Chin Liang See <[email protected]>

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.

---
 arch/arm/mach-socfpga/misc_soc64.c | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach- renamed from arch/arm/mach-socfpga/misc_soc64.c +0 -0

socfpga/misc_soc64.c
index 2acdfad07b..00852d27d9 100644

arch/arm/mach-socfpga/misc_soc64.c void do_bridge_reset(int enable, unsigned int mask) · line 95

Quoted 7 lines
arch/arm/mach-socfpga/misc_soc64.c +4 -0
@@ -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);

I don't see this function in https://source.denx.de/u-boot/u-boot, you need to submit the patch for this function first.

Quoted 3 lines
arch/arm/mach-socfpga/misc_soc64.c +1 -1
+}
--

2.26.2

Best regards,
TF.