Commit d00d346b authored by Peng Fan's avatar Peng Fan

MLK-18243-8 arm: imx8m: soc: use i.MX8MM address for boot info

i.MX8MM does not have A0 ROM address, to avoid build failure,
use CONFIG_IMX8MM here.
Signed-off-by: 's avatarPeng Fan <peng.fan@nxp.com>
parent b1f5c76a
......@@ -312,9 +312,14 @@ int arch_auxiliary_core_check_up(u32 core_id)
enum boot_device get_boot_device(void)
{
#ifdef CONFIG_IMX8MM
struct bootrom_sw_info **p =
(struct bootrom_sw_info **)ROM_SW_INFO_ADDR;
#else
struct bootrom_sw_info **p =
is_soc_rev(CHIP_REV_1_0)? (struct bootrom_sw_info **)ROM_SW_INFO_ADDR_A0 :
(struct bootrom_sw_info **)ROM_SW_INFO_ADDR;
#endif
enum boot_device boot_dev = SD1_BOOT;
u8 boot_type = (*p)->boot_dev_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment