From: Ye Li Date: Tue, 31 Jan 2023 08:42:14 +0000 (+0800) Subject: imx: imx8ulp: Limit the eMMC ROM API workaround to A0.1 part X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~175^2~16^2~91 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=d10dbc9f1806323ffd0ad3cc4a2fd01024a32b7d;p=uboot.git imx: imx8ulp: 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 Reviewed-by: Peng Fan --- diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index 9b12d3d1ad..43703991b8 100644 --- a/arch/arm/mach-imx/imx8ulp/soc.c +++ b/arch/arm/mach-imx/imx8ulp/soc.c @@ -761,7 +761,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;