aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2020-07-30 16:21:46 +0300
committerEugen Hristev <eugen.hristev@microchip.com>2021-01-07 09:44:16 +0200
commitd05223eb5a1383a484597f079a3905a98fcff44d (patch)
tree88473c21bf0beeab45228ba97a9e7c75f97761a1 /include
parent7f4c89cc5c20b396ece095c443d6018c813981d4 (diff)
downloadu-boot-d05223eb5a1383a484597f079a3905a98fcff44d.zip
u-boot-d05223eb5a1383a484597f079a3905a98fcff44d.tar.gz
u-boot-d05223eb5a1383a484597f079a3905a98fcff44d.tar.bz2
board: atmel: sama7g5ek: clean-up header bootcommand
Clean-up boot command to use the predefined device and part for FAT environment. According to this device and partition, select the proper boot media. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/sama7g5ek.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/configs/sama7g5ek.h b/include/configs/sama7g5ek.h
index dc6cf4c..ef3bfa3 100644
--- a/include/configs/sama7g5ek.h
+++ b/include/configs/sama7g5ek.h
@@ -29,16 +29,11 @@
#undef CONFIG_BOOTCOMMAND
#ifdef CONFIG_SD_BOOT
/* u-boot env in sd/mmc card */
-#define FAT_ENV_INTERFACE "mmc"
-#define FAT_ENV_DEVICE_AND_PART "0"
-#define FAT_ENV_FILE "uboot.env"
+
/* bootstrap + u-boot + env in sd card */
-#define CONFIG_BOOTCOMMAND "fatload mmc 0:1 0x61000000 at91-sama7g5ek.dtb; " \
- "fatload mmc 0:1 0x62000000 zImage; " \
+#define CONFIG_BOOTCOMMAND "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x61000000 at91-sama7g5ek.dtb; " \
+ "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x62000000 zImage; " \
"bootz 0x62000000 - 0x61000000"
-#undef CONFIG_BOOTARGS
-#define CONFIG_BOOTARGS \
- "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait"
#endif
/* Size of malloc() pool */