aboutsummaryrefslogtreecommitdiff
path: root/include/configs/stm32f746-disco.h
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2019-02-21 10:07:54 +0100
committerPatrice Chotard <patrice.chotard@st.com>2019-04-23 15:31:35 +0200
commit019ce052c8bd032c2fdb7ee926ad35b3064a0c30 (patch)
treefa470e123cc9514661343db1db701d4b79fe8282 /include/configs/stm32f746-disco.h
parent6f41d1a17e20fcc99329c2001d465945fca447a1 (diff)
downloadu-boot-019ce052c8bd032c2fdb7ee926ad35b3064a0c30.zip
u-boot-019ce052c8bd032c2fdb7ee926ad35b3064a0c30.tar.gz
u-boot-019ce052c8bd032c2fdb7ee926ad35b3064a0c30.tar.bz2
configs: stm32f746-disco: update EXTRA_ENV_SETTINGS
Allows to boot linux distribution. As stm32f746-disco and stm32f769-disco are sharing the same defconfig file, in case of stm32f769-disco build, "fdtfile=..." must be updated with the correct stm32f769 DTB file name. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'include/configs/stm32f746-disco.h')
-rw-r--r--include/configs/stm32f746-disco.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h
index dae402f..84bbc76 100644
--- a/include/configs/stm32f746-disco.h
+++ b/include/configs/stm32f746-disco.h
@@ -43,14 +43,20 @@
#define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
-#define CONFIG_BOOTCOMMAND \
- "run bootcmd_romfs"
-
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "bootargs_romfs=uclinux.physaddr=0x08180000 root=/dev/mtdblock0\0" \
- "bootcmd_romfs=setenv bootargs ${bootargs} ${bootargs_romfs};" \
- "bootm 0x08044000 - 0x08042000\0"
-
+#define BOOT_TARGET_DEVICES(func) \
+ func(MMC, mmc, 0)
+
+#include <config_distro_bootcmd.h>
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "kernel_addr_r=0xC0008000\0" \
+ "fdtfile=stm32f746-disco.dtb\0" \
+ "fdt_addr_r=0xC0500000\0" \
+ "scriptaddr=0xC0008000\0" \
+ "pxefile_addr_r=0xC0008000\0" \
+ "fdt_high=0xffffffffffffffff\0" \
+ "initrd_high=0xffffffffffffffff\0" \
+ "ramdisk_addr_r=0xD0900000\0" \
+ BOOTENV
/*
* Command line configuration.