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

Chee, Tien Fong tien.fong.chee at altera.com
Fri Apr 17 10:31:41 CEST 2026


On 25/3/2026 1:44 pm, dinesh.maniyam at altera.com wrote:
> 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


Reviewed-by: Tien Fong Chee <tien.fong.chee at altera.com>

Best regards,
Tien Fong



More information about the U-Boot mailing list