]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: am64x: Switch to standard boot flow
authorRoger Quadros <rogerq@kernel.org>
Thu, 5 Oct 2023 13:06:42 +0000 (16:06 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 12 Oct 2023 18:06:04 +0000 (14:06 -0400)
Switch to using bootstd. Note with this change, we will stop using
distro_bootcmd and instead depend entirely on bootflow method of
starting the system up.

Drop header files that are no longer needed in am64x_evm.h.
k3_dfu.h is available via k3_dfu.env in am64x.env.

Drop unused macro CFG_SYS_SDRAM_BASE1.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Nishanth Menon <nm@ti.com>
board/ti/am64x/am64x.env
configs/am64x_evm_a53_defconfig
include/configs/am64x_evm.h

index 68e42222b7f16d76c7486df39b8b8f3f1139bd02..efd736b99be4556598b49547ad6943b7b26d58ca 100644 (file)
@@ -15,6 +15,7 @@ console=ttyS2,115200n8
 args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000 ${mtdparts}
 run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
 
+boot_targets=mmc1 mmc0 usb pxe dhcp
 boot=mmc
 mmcdev=1
 bootpart=1:2
index e92a651416af30888caaa63d83b091af0d380a69..20b101acbb782865a38564956fa560f39ec44808 100644 (file)
@@ -30,8 +30,9 @@ CONFIG_SPL_SPI=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
-CONFIG_DISTRO_DEFAULTS=y
-CONFIG_BOOTCOMMAND="run envboot; run distro_bootcmd;"
+CONFIG_BOOTSTD_FULL=y
+CONFIG_BOOTSTD_DEFAULTS=y
+CONFIG_BOOTCOMMAND="run envboot; bootflow scan -lb"
 CONFIG_BOARD_LATE_INIT=y
 CONFIG_SPL_MAX_SIZE=0x180000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
index 062102a610d32b1fc4287f2ac22054c2fbc94b19..f9f8c7bc2f6ca9e5f6b3ba050ffed12247343a58 100644 (file)
@@ -9,15 +9,6 @@
 #ifndef __CONFIG_AM642_EVM_H
 #define __CONFIG_AM642_EVM_H
 
-#include <linux/sizes.h>
-#include <config_distro_bootcmd.h>
-#include <env/ti/mmc.h>
-#include <asm/arch/am64_hardware.h>
-#include <env/ti/k3_dfu.h>
-
-/* DDR Configuration */
-#define CFG_SYS_SDRAM_BASE1            0x880000000
-
 /* Now for the remaining common defines */
 #include <configs/ti_armv7_common.h>