diff mbox series

[U-Boot,U-boot,v3,12/14] configs: sam9x60ek: Add QSPI_BOOT defines

Message ID 20190927130818.478-13-tudor.ambarus@microchip.com
State Accepted
Commit 8c04ea7cada44f393c435001bc466a82fde04fba
Delegated to: Eugen Hristev
Headers show
Series Add support for sam9x60ek | expand

Commit Message

Tudor Ambarus Sept. 27, 2019, 1:09 p.m. UTC
From: Tudor Ambarus <tudor.ambarus@microchip.com>

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 | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/include/configs/sam9x60ek.h b/include/configs/sam9x60ek.h
index dbcbce3a2b80..5f89ae4a511a 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
 
 /*