board: ti: am57xx: Add dt support for BeagleBoard-X15 revC
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 23 Aug 2017 06:09:06 +0000 (11:39 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 11 Sep 2017 20:23:04 +0000 (16:23 -0400)
Add support for selecting proper dtb for
am57xx BeagleBoard X15 revC 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/am57xx/board.c
configs/am57xx_evm_defconfig
configs/am57xx_hs_evm_defconfig

index fdb1cbe68a9975d8dcf98d9ca785814bb34cbd92..1d6cee2b40904ec5572fd281bc2645141098b4e7 100644 (file)
@@ -176,6 +176,7 @@ dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-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 \
+       am57xx-beagle-x15-revc.dtb \
        am572x-idk.dtb  \
        am571x-idk.dtb
 dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
index 3d15cb1dbfb1aa4f2bee06766221e422f1b3eb7a..f79aefd40053dd9a096b0f7e7c4e2c6770f58e8f 100644 (file)
@@ -1063,6 +1063,9 @@ int board_fit_config_name_match(const char *name)
                if (board_is_x15_revb1()) {
                        if (!strcmp(name, "am57xx-beagle-x15-revb1"))
                                return 0;
+               } else if (board_is_x15_revc()) {
+                       if (!strcmp(name, "am57xx-beagle-x15-revc"))
+                               return 0;
                } else if (!strcmp(name, "am57xx-beagle-x15")) {
                        return 0;
                }
index 3d455eb7d4e1d8edc75dcde157bad725aac1c4d3..0e4679abedf22788473a04a8bd0f1b80060b77d8 100644 (file)
@@ -39,7 +39,7 @@ CONFIG_CMD_SPL=y
 CONFIG_ISO_PARTITION=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
-CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am572x-idk am571x-idk"
+CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y
index 01d77cbbd09eb2e9e9bbbb5139b9314c4cf7c048..e7638b88c25dabd74e57184838793a363644b2e9 100644 (file)
@@ -42,7 +42,7 @@ CONFIG_FASTBOOT_FLASH_MMC_DEV=1
 CONFIG_ISO_PARTITION=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
-CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am572x-idk am571x-idk"
+CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y