]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: mt8516: use bootcmd from config_distro_bootcmd.h
authorFabien Parent <fparent@baylibre.com>
Mon, 15 Feb 2021 18:07:46 +0000 (19:07 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 20 Mar 2021 20:24:27 +0000 (16:24 -0400)
Instead of redefining our own way to boot, let's just use
config_distro_bootcmd.h.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
include/configs/mt8516.h

index e809a9c7e3046464014b40d84e0653e2ff34d468..a1c5d8174be79448e485fdbfab0f3ec3e602eb7c 100644 (file)
 /* Environment settings */
 #include <config_distro_bootcmd.h>
 
-#define MMCBOOT \
-       "mmcdev=0\0" \
-       "kernel_partition=2\0" \
-       "rootfs_partition=3\0" \
-       "mmc_discover_partition=" \
-               "part start mmc ${mmcdev} ${kernel_partition} kernel_part_addr;" \
-               "part size mmc ${mmcdev} ${kernel_partition} kernel_part_size;\0" \
-       "mmcboot=" \
-               "mmc dev ${mmcdev};" \
-               "run mmc_discover_partition;" \
-               "mmc read ${kerneladdr} ${kernel_part_addr} ${kernel_part_size};" \
-               "setenv bootargs ${bootargs} root=/dev/mmcblk${mmcdev}p${rootfs_partition} rootwait; " \
-               "bootm ${kerneladdr}; \0"
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 0)
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
-       "kerneladdr=0x4A000000\0" \
-       MMCBOOT \
-       "bootcmd=run mmcboot;\0"
+       "scriptaddr=0x40000000\0" \
+       BOOTENV
 
 #endif