summaryrefslogtreecommitdiff
path: root/include/configs/sam9x60ek.h
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2019-09-27 16:09:15 +0300
committerEugen Hristev <eugen.hristev@microchip.com>2019-10-08 09:16:11 +0300
commit8c04ea7cada44f393c435001bc466a82fde04fba (patch)
treeb56b34ba9532373385eb6dafc4902b1b500be7e5 /include/configs/sam9x60ek.h
parent33e8ecb0bda379086abf9326c5ed977fb3d75abf (diff)
downloadu-boot-8c04ea7cada44f393c435001bc466a82fde04fba.tar.xz
configs: sam9x60ek: Add QSPI_BOOT defines
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>
Diffstat (limited to 'include/configs/sam9x60ek.h')
-rw-r--r--include/configs/sam9x60ek.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/sam9x60ek.h b/include/configs/sam9x60ek.h
index dbcbce3a2b..5f89ae4a51 100644
--- a/include/configs/sam9x60ek.h
+++ b/include/configs/sam9x60ek.h
@@ -78,6 +78,13 @@
"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
/*