summaryrefslogtreecommitdiff
path: root/include/configs/sama5d2_xplained.h
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2018-05-11 11:14:32 +0300
committerTom Rini <trini@konsulko.com>2018-05-23 17:30:05 -0400
commitc4d7b7a6b8571030c5109e8cb75a85756156711e (patch)
treea03201720049aa91b762d61bfc7007913e04141e /include/configs/sama5d2_xplained.h
parente75477e4f29b1564ee3aa2f85b061cc4d3560a36 (diff)
configs: sama5d2_xplained: fix bootcmd/args for spi+emmc demo
For sama5d2_xplained_spiflash_defconfig, we have the demo layout as presented on this link: http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d2XplainedMainPage#SPI_eMMC_Flash_demo_Memory_map on SPI Flash (4 Mbyte) we have Bootstrap (second level bootloader), U-boot + env and kernel+dtb we keep on eMMC on single partition in /boot directory, formatted with ext4. Thus, changing the boot command to reflect this demo for the spiflash config, and fixing up bootargs. Sama5d2_xplained does not have NAND flash, so the bootargs were completely wrong. Fixes: "5abc1a45": common: Move CONFIG_BOOTARGS to Kconfig Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'include/configs/sama5d2_xplained.h')
-rw-r--r--include/configs/sama5d2_xplained.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/sama5d2_xplained.h b/include/configs/sama5d2_xplained.h
index f70ca83b25..b205d8d604 100644
--- a/include/configs/sama5d2_xplained.h
+++ b/include/configs/sama5d2_xplained.h
@@ -43,6 +43,15 @@
"fatload mmc 1:1 0x22000000 zImage; " \
"bootz 0x22000000 - 0x21000000"
+#elif CONFIG_SPI_BOOT
+
+/* bootstrap + u-boot + env in sd card, but kernel + dtb in eMMC */
+#undef CONFIG_BOOTCOMMAND
+
+#define CONFIG_BOOTCOMMAND "ext4load mmc 0:1 0x21000000 /boot/at91-sama5d2_xplained.dtb; " \
+ "ext4load mmc 0:1 0x22000000 /boot/zImage; " \
+ "bootz 0x22000000 - 0x21000000"
+
#endif
/* SPL */