From: chee.hong.ang at intel.com Date: Mon, 6 May 2019 22:07:22 -0700 Subject: [U-Boot] [PATCH v1 2/3] ARM: socfpga: stratix10: To notify SDM when SPL pass control to U-Boot In-Reply-To: <1557205643-30557-1-git-send-email-chee.hong.ang@intel.com> References: <1557205643-30557-1-git-send-email-chee.hong.ang@intel.com> Message-ID: <1557205643-30557-3-git-send-email-chee.hong.ang@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: "Ang, Chee Hong" 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. This is for debug purpose as user can query SDM on HPS error details when HPS enters a warm reset due to error such as watchdog. Signed-off-by: Chin Liang See Signed-off-by: Ang, Chee Hong --- 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 e063229..0721415 100644 --- a/arch/arm/mach-socfpga/spl_s10.c +++ b/arch/arm/mach-socfpga/spl_s10.c @@ -191,3 +191,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.7.4