arm: atmel: sama5d3: add nand spl boot support
[karo-tx-uboot.git] / arch / arm / cpu / at91-common / spl.c
index 2598e09..7f4debb 100644 (file)
@@ -52,6 +52,8 @@ u32 spl_boot_device(void)
 {
 #ifdef CONFIG_SYS_USE_MMC
        return BOOT_DEVICE_MMC1;
+#elif CONFIG_SYS_USE_NANDFLASH
+       return BOOT_DEVICE_NAND;
 #elif CONFIG_SYS_USE_SERIALFLASH
        return BOOT_DEVICE_SPI;
 #endif