* [PATCH] arm: socfpga: spl: To notify SDM when SPL pass control to U-Boot
@ 2022-05-13 2:32 dinesh.maniyam
2022-06-01 8:27 ` Maniyam, Dinesh
0 siblings, 1 reply; 2+ messages in thread
From: dinesh.maniyam @ 2022-05-13 2:32 UTC (permalink / raw)
To: u-boot
Cc: Marek Vasut, Simon Goldschmidt, Tien Fong Chee, Kok Kiang,
Yau Wai, Sin Hui, Raaj, Dinesh Maniyam
From: Dinesh Maniyam <dinesh.maniyam@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@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] arm: socfpga: spl: To notify SDM when SPL pass control to U-Boot
2022-05-13 2:32 [PATCH] arm: socfpga: spl: To notify SDM when SPL pass control to U-Boot dinesh.maniyam
@ 2022-06-01 8:27 ` Maniyam, Dinesh
0 siblings, 0 replies; 2+ messages in thread
From: Maniyam, Dinesh @ 2022-06-01 8:27 UTC (permalink / raw)
To: u-boot
Cc: Vasut, Marek, Simon Goldschmidt, Chee, Tien Fong, Hea, Kok Kiang,
Gan, Yau Wai, Kho, Sin Hui, Lokanathan, Raaj
> -----Original Message-----
> From: Maniyam, Dinesh <dinesh.maniyam@intel.com>
> Sent: Friday, 13 May 2022 10:32 am
> 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] arm: socfpga: spl: To notify SDM when SPL pass control to U-
> Boot
>
> From: Dinesh Maniyam <dinesh.maniyam@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@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
I will need to rework this patch.
I will re-submit the next version of this patch.
Regards,
Dinesh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-01 13:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 2:32 [PATCH] arm: socfpga: spl: To notify SDM when SPL pass control to U-Boot dinesh.maniyam
2022-06-01 8:27 ` Maniyam, Dinesh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.