]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: Convert rockpro64-rk3399 to use standard boot
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:48:20 +0000 (10:48 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:41 +0000 (18:11 -0500)
Drop the use of scripts and rely on standard boot for all operation.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
include/configs/rk3399_common.h
include/configs/rockchip-common.h

index 95cb27c89516a9373cb3df379f334a714e3e1424..3ef9ffa2e9c4a7068a092d847ea3bcd8b364058f 100644 (file)
 #define ROCKCHIP_DEVICE_SETTINGS
 #endif
 
-#include <config_distro_bootcmd.h>
-#include <environment/distro/sf.h>
 #define CFG_EXTRA_ENV_SETTINGS \
        ENV_MEM_LAYOUT_SETTINGS \
        "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
        "partitions=" PARTS_DEFAULT \
        ROCKCHIP_DEVICE_SETTINGS \
-       BOOTENV \
-       BOOTENV_SF \
+       "boot_targets=" BOOT_TARGETS "\0" \
        "altbootcmd=" \
                "setenv boot_syslinux_conf extlinux/extlinux-rollback.conf;" \
                "run distro_bootcmd\0"
index 1f6b82f2d022253fc1bc3b8c04d6f6b4a5b33a86..0b23e4c043337e46c8f5be3137031e16409f2edb 100644 (file)
        BOOT_TARGET_PXE(func) \
        BOOT_TARGET_DHCP(func) \
        BOOT_TARGET_SF(func)
+#define BOOT_TARGETS   "mmc1 mmc0 nvme scsi usb pxe dhcp spi"
 #else
 #define BOOT_TARGET_DEVICES(func) \
        BOOT_TARGET_MMC(func) \
        BOOT_TARGET_USB(func) \
        BOOT_TARGET_PXE(func) \
        BOOT_TARGET_DHCP(func)
+#define BOOT_TARGETS   "mmc1 mmc0 usb pxe dhcp"
 #endif
 
 #ifdef CONFIG_ARM64