configs: sama5d2_xplained: add support QSPI flash boot
[oweals/u-boot.git] / include / configs / sama5d2_xplained.h
index e522740e0c5bd8156219a56e761ad2d690e8188d..3dea3591275fbb6d2a99fe8a772bdc059b68d100 100644 (file)
 
 #endif
 
+#ifdef CONFIG_QSPI_BOOT
+#undef CONFIG_ENV_SPI_BUS
+#undef CONFIG_BOOTCOMMAND
+#define CONFIG_ENV_SPI_BUS     1
+#define CONFIG_BOOTCOMMAND     "sf probe 1:0; "                        \
+                               "sf read 0x21000000 0x180000 0x80000; " \
+                               "sf read 0x22000000 0x200000 0x600000; "\
+                               "bootz 0x22000000 - 0x21000000"
+
+#endif
+
 /* SPL */
 #define CONFIG_SPL_MAX_SIZE            0x10000
 #define CONFIG_SPL_BSS_START_ADDR      0x20000000