]> git.sur5r.net Git - u-boot/commitdiff
configs: k2g_evm: make sure config fallbacks take effect
authorSekhar Nori <nsekhar@ti.com>
Fri, 2 Jun 2017 12:24:01 +0000 (17:54 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 3 Jun 2017 21:55:18 +0000 (17:55 -0400)
Since config fallbacks contained in include/config_fallbacks.h
come into k2g_evm.h file through ti_armv7_keystone2.h, it should
be the last file included.

Without this, #define of FAT_WRITE when environment is in FAT
does not happen as the environment location is decided later
in the file.

Similar issues can come with other config fallbacks implemented.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
include/configs/k2g_evm.h

index 9a07eacb8e7a9b2f75d028ea6e4639254e14305d..1cc35769840ff0834a1407788d99784b7233d5a8 100644 (file)
@@ -48,8 +48,6 @@
        "get_pmmc_${boot} run_pmmc get_mon_${boot} run_mon "            \
        "get_fdt_${boot} get_kern_${boot} run_kern"
 
-#include <configs/ti_armv7_keystone2.h>
-
 /* SPL SPI Loader Configuration */
 #define CONFIG_SPL_TEXT_BASE           0x0c080000
 
@@ -80,4 +78,7 @@
 #endif
 
 #define SPI_MTD_PARTS  KEYSTONE_SPI1_MTD_PARTS
+
+#include <configs/ti_armv7_keystone2.h>
+
 #endif /* __CONFIG_K2G_EVM_H */