ARM: at91: spl: Add boot device for boot from QSPI
authorWenyou Yang <wenyou.yang@microchip.com>
Wed, 13 Sep 2017 06:58:51 +0000 (14:58 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 14 Sep 2017 20:02:45 +0000 (16:02 -0400)
Add the boot device for booting from the QSPI flash.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-at91/spl.c

index e113336b7bfca467ea7049e4c5e0682584ae469f..98337aebbe1c94d8f616088e4a7d461ad3a67f2f 100644 (file)
@@ -56,6 +56,8 @@ u32 spl_boot_device(void)
        if (dev == ATMEL_SAMA5_BOOT_FROM_SPI)
                return BOOT_DEVICE_SPI;
 #endif
+       if (dev == ATMEL_SAMA5_BOOT_FROM_QSPI)
+               return BOOT_DEVICE_SPI;
 
        if (dev == ATMEL_SAMA5_BOOT_FROM_SMC)
                return BOOT_DEVICE_NAND;