]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx: Add QSPI boot mode for i.MX6UL/ULL
authorStefan Roese <sr@denx.de>
Fri, 20 Sep 2019 16:09:08 +0000 (18:09 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:36 +0000 (16:36 +0200)
This patch adds the missing boot mode detection for QSPI boot on
i.MX6UL/ULL. Without it, booting with SPL from QSPI NOR does not work.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/spl.c

index cda719226aae07d589044007b550f3b1f89fcbbc..f33b9f09622cd8451d954809113edde2e117c8cc 100644 (file)
@@ -94,6 +94,11 @@ u32 spl_boot_device(void)
        /* NAND Flash: 8.5.2, Table 8-10 */
        case IMX6_BMODE_NAND_MIN ... IMX6_BMODE_NAND_MAX:
                return BOOT_DEVICE_NAND;
+#if defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL)
+       /* QSPI boot */
+       case IMX6_BMODE_QSPI:
+               return BOOT_DEVICE_SPI;
+#endif
        }
        return BOOT_DEVICE_NONE;
 }