Skip to contentSkip to conversation

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

PATCH In review [email protected] 2 participants 2 messages Mar 25 – Apr 17

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

PATCH 1/1 arm: socfpga: Setting the image magic value to romcode initswstate register

From: Dinesh Maniyam <[email protected]>

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.

---
 arch/arm/mach-socfpga/include/mach/system_manager_arria10.h | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-socfpga/include/mach/system_manager_arria10.h +2 -0
index 0afe63e647e..346db78aff2 100644
@@ -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
Signature · 1 line
2.43.7
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · On 25/3/2026 1:44 pm, [email protected] wrote:

From: Dinesh Maniyam <[email protected]>

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.

---
  arch/arm/mach-socfpga/include/mach/system_manager_arria10.h | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/mach-socfpga/include/mach/system_manager_arria10.h +0 -0
index 0afe63e647e..346db78aff2 100644

arch/arm/mach-socfpga/include/mach/system_manager_arria10.h line 44

Quoted 8 lines
arch/arm/mach-socfpga/include/mach/system_manager_arria10.h +2 -0
@@ -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

Best regards,
Tien Fong