diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2019-06-18 11:52:11 +0300 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2019-07-09 09:26:43 +0300 |
commit | 5dd4fa7fadf5a2cea130b6ab650e3982c5084f52 (patch) | |
tree | 5a1203a352691068c02b359226e3b6beedf2f967 /include/configs/sama5d2_xplained.h | |
parent | 907f1da6ce1ddcbca78bed93e1312203dc09e306 (diff) | |
download | u-boot-5dd4fa7fadf5a2cea130b6ab650e3982c5084f52.tar.xz |
configs: sama5d2_xplained: add support QSPI flash boot
The spi-nor flash resides on spi bus 1. Update the CONFIG_ENV_SPI_CS
and CONFIG_BOOTCOMMAND accordingly.
Based on original work by Wenyou Yang.
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
[tudor.ambarus@microchip.com: amend the commit message.]
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Diffstat (limited to 'include/configs/sama5d2_xplained.h')
-rw-r--r-- | include/configs/sama5d2_xplained.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/sama5d2_xplained.h b/include/configs/sama5d2_xplained.h index e522740e0c..3dea359127 100644 --- a/include/configs/sama5d2_xplained.h +++ b/include/configs/sama5d2_xplained.h @@ -46,6 +46,17 @@ #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 |