imx8ulp: Add workaround for eMMC boot
authorYe Li <ye.li@nxp.com>
Sat, 7 Aug 2021 08:01:08 +0000 (16:01 +0800)
committerStefano Babic <sbabic@denx.de>
Mon, 9 Aug 2021 12:46:51 +0000 (14:46 +0200)
commite8b68048e1deca93976a2656faf778f877a208b2
treeb7c8cf447a921792ff2311a333ef5cf7a45c1c4e
parent27b6a4504e8d190177bbe8ece5a079cd7e83de4d
imx8ulp: Add workaround for eMMC boot

When booting from boot part1/2, the image offset should be 0, but
ROM has a bug to return 0x8000. Has to workaround the issue before
ROM fix it.

Use a ROM function to know boot from emmc boot part or user part
So we can set the image offset accordingly.

Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/mach-imx/image-container.c
arch/arm/mach-imx/imx8ulp/soc.c