Commit 3735aedb authored by Peng Fan's avatar Peng Fan
Browse files

MLK-18333-2 imx8m: add QSPI boot dev



When boot type could not be detected from rom sw info,
read sbmr1 to detect, here we only use it to detect FLEXSPI
boot, because ROM not update it in rom sw info.
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
parent 60e943cd
......@@ -323,6 +323,7 @@ int arch_auxiliary_core_check_up(u32 core_id)
enum boot_device get_boot_device(void)
{
u32 soc_sbmr = readl(SRC_BASE_ADDR + 0x58);
#ifdef CONFIG_IMX8MM
struct bootrom_sw_info **p =
(struct bootrom_sw_info **)ROM_SW_INFO_ADDR;
......@@ -359,6 +360,8 @@ enum boot_device get_boot_device(void)
boot_dev = USB_BOOT;
break;
default:
if (((soc_sbmr & 0x00007FFF) >> 12) == 0x4)
boot_dev = QSPI_BOOT;
break;
}
......
......@@ -120,6 +120,8 @@ u32 spl_boot_device(void)
return BOOT_DEVICE_USB;
case SPI_NOR_BOOT:
return BOOT_DEVICE_SPI;
case QSPI_BOOT:
return BOOT_DEVICE_NOR;
default:
return BOOT_DEVICE_NONE;
}
......
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