diff options
author | Ye Li <ye.li@nxp.com> | 2020-05-27 03:33:38 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-05-28 04:02:54 -0700 |
commit | 665972355dfe8156b3aa7bce52845722b15d9922 (patch) | |
tree | 994dc8213980db204aa8c3ba1a5965f4a270c007 /include/configs/imx8mm_val.h | |
parent | 0c6cc66b1181c72b8f9165875b9db075a1de89de (diff) |
MLK-23820 imx8mq/mm: Add config to support secondary image boot
When primary image boot is failed, ROM will select secondary image to
boot if SIT (secondary image table) exists. However, SPL does not know
the secondary boot, still loads the FIT from the position of primary image.
Introduce a config to add secondary image sector offset to FIT sector
offset. This config is default set to 0. Secondary image should configure
it to the same value of firstSectorNumber field in SIT.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/configs/imx8mm_val.h')
-rw-r--r-- | include/configs/imx8mm_val.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/imx8mm_val.h b/include/configs/imx8mm_val.h index 8c1b4e4bdf9..3cbd03a4ed1 100644 --- a/include/configs/imx8mm_val.h +++ b/include/configs/imx8mm_val.h @@ -14,7 +14,7 @@ #define CONFIG_SPL_MAX_SIZE (148 * 1024) #define CONFIG_SYS_MONITOR_LEN SZ_512K #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR -#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR (0x300 + CONFIG_SECONDARY_BOOT_SECTOR_OFFSET) #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 #define CONFIG_SYS_UBOOT_BASE \ (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512) |