summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorSinthu Raja <sinthu.raja@ti.com>2023-01-10 21:17:58 +0530
committerTom Rini <trini@konsulko.com>2023-01-27 12:51:27 -0500
commit9787ecfd0d8fbfd1835a8afe4fe815cad7e7e46b (patch)
treef6eb343be30be2a2e4c1ef40df49274ced24341d /include/configs
parentca04b7da6d9a153e6fe8a846d2baf892d5b69aae (diff)
include: configs: Update env for selecting right dtb
Now that single defconfig shall be used for booting J721S2 EVM and AM68 SK, the 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> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/j721s2_evm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/j721s2_evm.h b/include/configs/j721s2_evm.h
index 54dfea6952e..bfada9eebc2 100644
--- a/include/configs/j721s2_evm.h
+++ b/include/configs/j721s2_evm.h
@@ -32,6 +32,10 @@
"default_device_tree=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
"findfdt=" \
"setenv name_fdt ${default_device_tree};" \
+ "if test $board_name = j721s2; then " \
+ "setenv name_fdt k3-j721s2-common-proc-board.dtb; fi;" \
+ "if test $board_name = am68-sk; then " \
+ "setenv name_fdt k3-am68-sk-base-board.dtb; fi;"\
"setenv fdtfile ${name_fdt}\0" \
"name_kern=Image\0" \
"console=ttyS2,115200n8\0" \