MLK-17011 imx8qm/qxp: Fix wrong boot type for flexspi
authorYe Li <ye.li@nxp.com>
Tue, 28 Nov 2017 06:21:08 +0000 (00:21 -0600)
committerYe Li <ye.li@nxp.com>
Wed, 29 Nov 2017 05:47:18 +0000 (23:47 -0600)
The codes use the QSPI when booting from Flexspi, this cause u-boot prints
out unknown device if we boot from Flexspi NOR.

Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/cpu/armv8/imx8/cpu.c

index 213a8ee..cc2d96e 100644 (file)
@@ -623,7 +623,7 @@ enum boot_device get_boot_device(void)
                boot_dev = NAND_BOOT;
                break;
        case SC_R_FSPI_0:
-               boot_dev = QSPI_BOOT;
+               boot_dev = FLEXSPI_BOOT;
                break;
        case SC_R_SATA_0:
                boot_dev = SATA_BOOT;