Skip to contentSkip to conversation

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

PATCH New Jit Loon Lim 1 participant 1 message Aug 30, 2022

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

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

From: Chin Liang See <[email protected]>

Prior SPL pass control to U-Boot, SPL will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition.

The purpose is for debug as user can query SDM on HPS error details when HPS enters a warm reset due to error such as watchdog.

---
 arch/arm/mach-socfpga/spl_s10.c | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/mach-socfpga/spl_s10.c +6 -0
index c20e87cdbe..9bfd1a0f6a 100644
@@ -92,3 +92,9 @@ void board_init_f(ulong dummy)
 	mbox_qspi_open();
 #endif
 }
+
+/* board specific function prior loading SSBL / U-Boot */
+void spl_board_prepare_for_boot(void)
+{
+	mbox_hps_stage_notify(HPS_EXECUTION_STATE_SSBL);
+}
Signature · 1 line
2.19.0