]> git.sur5r.net Git - u-boot/commitdiff
board: ti: dra76: Add dt support
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 21 Aug 2017 07:21:01 +0000 (12:51 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 11 Sep 2017 20:22:30 +0000 (16:22 -0400)
Add support for selecting proper dtb for
dra76x u-boot from FIT.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/dts/Makefile
board/ti/dra7xx/evm.c
configs/dra7xx_evm_defconfig
configs/dra7xx_hs_evm_defconfig

index 762429c463d1762e32bc52064498cb7bf1359c87..fdb1cbe68a9975d8dcf98d9ca785814bb34cbd92 100644 (file)
@@ -173,7 +173,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=                               \
        socfpga_cyclone5_vining_fpga.dtb
 
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-evm.dtb  \
-       dra72-evm-revc.dtb dra71-evm.dtb
+       dra72-evm-revc.dtb dra71-evm.dtb dra76-evm.dtb
 dtb-$(CONFIG_TARGET_AM57XX_EVM) += am57xx-beagle-x15.dtb \
        am57xx-beagle-x15-revb1.dtb \
        am572x-idk.dtb  \
index 87b7403070ae20280a01720ea45152d6b3545391..bd871fa749c0e2ce203e983b5f75baca4af21f03 100644 (file)
@@ -1115,7 +1115,9 @@ int board_fit_config_name_match(const char *name)
                } else if (!strcmp(name, "dra72-evm")) {
                        return 0;
                }
-       } else if (!is_dra72x() && !strcmp(name, "dra7-evm")) {
+       } else if (is_dra76x() && !strcmp(name, "dra76-evm")) {
+               return 0;
+       } else if (!is_dra72x() && !is_dra76x() && !strcmp(name, "dra7-evm")) {
                return 0;
        }
 
index e4bb299275d93ca9d246fc4c1614b8284945f829..53903bf7308498fe9129d585632193d0895fc8c1 100644 (file)
@@ -37,7 +37,7 @@ CONFIG_CMD_SPL=y
 CONFIG_ISO_PARTITION=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
-CONFIG_OF_LIST="dra7-evm dra72-evm dra72-evm-revc dra71-evm"
+CONFIG_OF_LIST="dra7-evm dra72-evm dra72-evm-revc dra71-evm dra76-evm"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y
index f55fc501aa48186d788793fa4859606641f58d2e..06d883411906c16a599acaf2efc46f514f8113c4 100644 (file)
@@ -41,7 +41,7 @@ CONFIG_FASTBOOT_FLASH_MMC_DEV=1
 CONFIG_ISO_PARTITION=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
-CONFIG_OF_LIST="dra7-evm dra72-evm dra72-evm-revc dra71-evm"
+CONFIG_OF_LIST="dra7-evm dra72-evm dra72-evm-revc dra71-evm dra76-evm"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y