aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinthu Raja <sinthu.raja@ti.com>2022-02-09 15:07:01 +0530
committerTom Rini <trini@konsulko.com>2022-02-16 14:19:30 -0500
commit0ca9f7042327dffb76334273d82123c8efaea37d (patch)
tree55f00deaa8edb3c3059230e3a3aa7c00461c1c01
parent8e0758aa6ef94721039dfdbe8806db1073523409 (diff)
downloadu-boot-0ca9f7042327dffb76334273d82123c8efaea37d.zip
u-boot-0ca9f7042327dffb76334273d82123c8efaea37d.tar.gz
u-boot-0ca9f7042327dffb76334273d82123c8efaea37d.tar.bz2
include: configs: Update env for selecting right dtb
Now that single defconfig can be used for booting J721E EVM and SK, default device tree will not work for selecting dtb for kernel. Update the findfdt env to select right dtb based on board_name env variable. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
-rw-r--r--include/configs/j721e_evm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h
index 627c363..e4b167d 100644
--- a/include/configs/j721e_evm.h
+++ b/include/configs/j721e_evm.h
@@ -66,6 +66,10 @@
"default_device_tree=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
"findfdt=" \
"setenv name_fdt ${default_device_tree};" \
+ "if test $board_name = j721e; then " \
+ "setenv name_fdt k3-j721e-common-proc-board.dtb; fi;" \
+ "if test $board_name = j721e-eaik || test $board_name = j721e-sk; then " \
+ "setenv name_fdt k3-j721e-sk.dtb; fi;" \
"setenv fdtfile ${name_fdt}\0" \
"name_kern=Image\0" \
"console=ttyS2,115200n8\0" \