]> git.baikalelectronics.ru Git - uboot.git/commitdiff
include: configs: Update env for selecting right dtb
authorSinthu Raja <sinthu.raja@ti.com>
Wed, 9 Feb 2022 09:37:01 +0000 (15:07 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 16 Feb 2022 19:19:30 +0000 (14:19 -0500)
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>
include/configs/j721e_evm.h

index 627c363ce66e8a5ae3028b1395c131c297803248..e4b167dd219dd7cc65616a68c1aee7ed6d3e63ad 100644 (file)
        "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"                                      \