1 --- a/board/solidrun/mx6cuboxi/mx6cuboxi.c
2 +++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c
3 @@ -290,6 +290,12 @@ static void setup_iomux_enet(void)
7 +void board_boot_order(u32 *spl_boot_list)
9 + spl_boot_list[0] = spl_boot_device();
10 + spl_boot_list[1] = BOOT_DEVICE_MMC1;
13 int board_phy_config(struct phy_device *phydev)
15 if (phydev->drv->config)
16 --- a/arch/arm/mach-imx/spl.c
17 +++ b/arch/arm/mach-imx/spl.c
18 @@ -167,7 +167,7 @@ int g_dnl_bind_fixup(struct usb_device_d
19 /* called from spl_mmc to see type of boot mode for storage (RAW or FAT) */
20 u32 spl_boot_mode(const u32 boot_device)
22 - switch (spl_boot_device()) {
23 + switch (boot_device) {
24 /* for MMC return either RAW or FAT mode */
25 case BOOT_DEVICE_MMC1:
26 case BOOT_DEVICE_MMC2: