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

dinesh.maniyam at intel.com dinesh.maniyam at intel.com
Fri May 13 04:32:12 CEST 2022


From: Dinesh Maniyam <dinesh.maniyam at intel.com>

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.

Signed-off-by: Dinesh Maniyam <dinesh.maniyam at intel.com>
---
 arch/arm/mach-socfpga/spl_s10.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c
index c20e87cdbe..9bfd1a0f6a 100644
--- a/arch/arm/mach-socfpga/spl_s10.c
+++ b/arch/arm/mach-socfpga/spl_s10.c
@@ -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);
+}
--
2.26.2



More information about the U-Boot mailing list