arm: socfpga: arria10: Setting image magic value to romcode initswstate reg
authorTien Fong Chee <tien.fong.chee@intel.com>
Sun, 7 Nov 2021 15:08:54 +0000 (23:08 +0800)
committerTien Fong Chee <tien.fong.chee@intel.com>
Fri, 17 Dec 2021 04:58:01 +0000 (12:58 +0800)
commit2f27754eb7f5321b9e4ff80870f03e35357a02a5
tree088bcd09aadd3d257242696bfedbeefbebe99cb8
parent5b20efeafec0ebe0ee5742c611e4f2153346797a
arm: socfpga: arria10: Setting image magic value to romcode initswstate reg

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@intel.com>
Signed-off-by: Sin Hui Kho <sin.hui.kho@intel.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@intel.com>
arch/arm/mach-socfpga/include/mach/system_manager_arria10.h
arch/arm/mach-socfpga/spl_a10.c