ti_omap5_common: Find right dtb file for DRA72-RevC Evm
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 29 Jun 2016 09:20:41 +0000 (14:50 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 1 Jul 2016 21:42:57 +0000 (17:42 -0400)
DRA72-Evm revC uses dra72-evm-revc.dtb. Update the same in env vatiables.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/dra7xx/evm.c
include/configs/ti_omap5_common.h

index 0394e4ee57adc2e79ccc377b4b3af059500f27c0..6a4d02769e584eed96fef0675e3bef5816d738db 100644 (file)
@@ -413,10 +413,14 @@ int board_late_init(void)
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
        char *name = "unknown";
 
-       if (is_dra72x())
-               name = "dra72x";
-       else
+       if (is_dra72x()) {
+               if (board_is_dra72x_revc_or_later())
+                       name = "dra72x-revc";
+               else
+                       name = "dra72x";
+       } else {
                name = "dra7xx";
+       }
 
        set_board_info_env(name);
 
index 2e4c8e9646787eff88539a8f4873b524b6568caa..3589cdc3a88e8830e4b547240ae393f098308721 100644 (file)
                        "setenv fdtfile omap5-uevm.dtb; fi; " \
                "if test $board_name = dra7xx; then " \
                        "setenv fdtfile dra7-evm.dtb; fi;" \
+               "if test $board_name = dra72x-revc; then " \
+                       "setenv fdtfile dra72-evm-revc.dtb; fi;" \
                "if test $board_name = dra72x; then " \
                        "setenv fdtfile dra72-evm.dtb; fi;" \
                "if test $board_name = beagle_x15; then " \