[PATCH] arm: socfpga: Setting the image magic value to romcode initswstate register

dinesh.maniyam at altera.com dinesh.maniyam at altera.com
Wed Mar 25 06:44:11 CET 2026


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

The romcode_initswstate register need to be set with FSBL_IMAGE_IS_VALID
value if the current FSBL image is found valid, otherwise BootROM will
look for next subsequent valid FSBL image when warm reset is triggered.

Signed-off-by: Tien Fong Chee <tien.fong.chee at intel.com>
Signed-off-by: Dinesh Maniyam <dinesh.maniyam at altera.com>
---
 arch/arm/mach-socfpga/include/mach/system_manager_arria10.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-socfpga/include/mach/system_manager_arria10.h b/arch/arm/mach-socfpga/include/mach/system_manager_arria10.h
index 0afe63e647e..346db78aff2 100644
--- a/arch/arm/mach-socfpga/include/mach/system_manager_arria10.h
+++ b/arch/arm/mach-socfpga/include/mach/system_manager_arria10.h
@@ -37,6 +37,8 @@
 #define SYSMGR_A10_ISW_HANDOFF_BASE		0x230
 #define SYSMGR_A10_ISW_HANDOFF_7		0x1c
 
+#define SYSMGR_A10_ROMCODE_INITSWSTATE		0x20C
+
 #define SYSMGR_SDMMC				SYSMGR_A10_SDMMC
 
 #define SYSMGR_SDMMC_SMPLSEL_SHIFT	4
-- 
2.43.7



More information about the U-Boot mailing list