]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ea: mx7ulp_com: move setting CONFIG_BOOTCOMMAND to defconfig
authorRicardo Salveti <ricardo@foundries.io>
Thu, 26 Aug 2021 11:04:24 +0000 (14:04 +0300)
committerStefano Babic <sbabic@denx.de>
Tue, 19 Oct 2021 08:51:39 +0000 (10:51 +0200)
Move setting CONFIG_BOOTCOMMAND to the mx7ulp_com_defconfig file.
It also allows replacing the default CONFIG_BOOTCOMMAND without
code modification.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
configs/mx7ulp_com_defconfig
include/configs/mx7ulp_com.h

index 6e6b821d9046feab6c317f3bbeb2232327f18534..bd3f52dd204f55ada30cf51b740b3483e251ec3a 100644 (file)
@@ -9,6 +9,8 @@ CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="imx7ulp-com"
 CONFIG_LDO_ENABLED_MODE=y
 CONFIG_TARGET_MX7ULP_COM=y
+CONFIG_USE_BOOTCOMMAND=y
+CONFIG_BOOTCOMMAND="if run loadimage; then run mmcboot; fi"
 CONFIG_SYS_LOAD_ADDR=0x60800000
 CONFIG_DEFAULT_FDT_FILE="imx7ulp-com"
 CONFIG_BOARD_EARLY_INIT_F=y
index 48172de1d0fa2daa6e20381d9c403721dd940545..58d48edac4326acb1ea9b589f719d9754e45a066 100644 (file)
                        "bootz ${loadaddr} - ${fdt_addr}; " \
                "fi;\0" \
 
-#define CONFIG_BOOTCOMMAND \
-       "if run loadimage; then " \
-               "run mmcboot; " \
-       "fi; " \
-
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       SZ_256K