]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: sam9x60ek: Add QSPI_BOOT defines
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 27 Sep 2019 13:09:15 +0000 (13:09 +0000)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 8 Oct 2019 06:16:11 +0000 (09:16 +0300)
Cope with the offsets defined at:
https://www.at91.com/linux4sam/pub/Linux4SAM/SambaSubsections/demo_nandflash_map_lnx4sam6x.png

The environment starts at 0x140000 and it's of size 0x20000.
The device tree starts at 0x180000 and it's of size 0x80000.
The zImage starts at 0x200000 and it's of size 0x600000.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
include/configs/sam9x60ek.h

index dbcbce3a2b80e8439abc7a25ffd503a56c2a26a8..5f89ae4a511aede0ed3f7db4c36caad3b588afd9 100644 (file)
                                "0x22000000 0x200000 0x600000; " \
                                "nand read 0x21000000 0x180000 0x20000; " \
                                "bootz 0x22000000 - 0x21000000"
+
+#elif defined(CONFIG_QSPI_BOOT)
+/* bootstrap + u-boot + env + linux in SPI NOR flash */
+#define CONFIG_BOOTCOMMAND     "sf probe 0; "                                  \
+                               "sf read 0x21000000 0x180000 0x80000; "         \
+                               "sf read 0x22000000 0x200000 0x600000; "        \
+                               "bootz 0x22000000 - 0x21000000"
 #endif
 
 /*