]> git.baikalelectronics.ru Git - uboot.git/commitdiff
include: configs: Update env for selecting right dtb
authorSinthu Raja <sinthu.raja@ti.com>
Tue, 10 Jan 2023 15:47:58 +0000 (21:17 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 27 Jan 2023 17:51:27 +0000 (12:51 -0500)
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>
include/configs/j721s2_evm.h

index 54dfea6952e9c1705efa7f6517c8873edf95e534..bfada9eebc20cb680df2a57bf745507d5c28039c 100644 (file)
        "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"                                      \