diff options
author | Ye Li <ye.li@nxp.com> | 2022-07-08 15:30:31 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2022-07-18 13:54:44 +0800 |
commit | c1ca49235a0b006d304892d365e414571d7f8a60 (patch) | |
tree | 60fa7d6473c7c2ac86b7b18d8b7b90b6176c8840 /arch/arm | |
parent | cca8909347ede3e87b6c1b5d83b3d91ba59e5d1c (diff) |
MLK-25979-2 imx8ulp: soc: Limit the eMMC ROM API workaround to A0.1 part
Since A1 ROM has fixed the ROM API eMMC issue, we should only use
the workaround for A0.1 part. Add a SOC revision check.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/imx8ulp/soc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index 708414c33d..eb76ee4103 100644 --- a/arch/arm/mach-imx/imx8ulp/soc.c +++ b/arch/arm/mach-imx/imx8ulp/soc.c @@ -877,7 +877,8 @@ int (*card_emmc_is_boot_part_en)(void) = (void *)0x67cc; u32 spl_arch_boot_image_offset(u32 image_offset, u32 rom_bt_dev) { /* Hard code for eMMC image_offset on 8ULP ROM, need fix by ROM, temp workaround */ - if (((rom_bt_dev >> 16) & 0xff) == BT_DEV_TYPE_MMC && card_emmc_is_boot_part_en()) + if (is_soc_rev(CHIP_REV_1_0) && ((rom_bt_dev >> 16) & 0xff) == BT_DEV_TYPE_MMC && + card_emmc_is_boot_part_en()) image_offset = 0; return image_offset; |