summaryrefslogtreecommitdiff
path: root/include/configs/k2hk_evm.h
diff options
context:
space:
mode:
authorMurali Karicheri <m-karicheri2@ti.com>2014-11-04 16:52:34 +0200
committerTom Rini <trini@ti.com>2014-11-06 11:04:39 -0500
commit349c26dd06c95f07973440199b1d885db23452cb (patch)
tree4bf7e6cb537f89c1ec88a4da25b820a481faa432 /include/configs/k2hk_evm.h
parent75d7c0b04c552a96de0e09ce5b892fa2e5592c5a (diff)
downloadu-boot-349c26dd06c95f07973440199b1d885db23452cb.tar.gz
keystone2: config: restructure handling of default env settings
Currently to customize env for various ks2 boards, individual variables such as NAME_FS etc are defined and included in the common config.h to define CONFIG_EXTRA_ENV_SETTINGS. This doesn't scale well if a variable is not applicable on a specific board. Using this scheme, we have to define variables with empty value and it's ugly. Instead, to allow board specific customization of default env variable, define a common CONFIG_EXTRA_ENV_KS2_SETTINGS for all common variables and define board specific variables in individual board specific config.h using CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS. Use the common and board specific variables to define CONFIG_EXTRA_ENV_SETTINGS. This way more variables can be added in future for individual boards without affecting the other config.h files. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/configs/k2hk_evm.h')
-rw-r--r--include/configs/k2hk_evm.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/configs/k2hk_evm.h b/include/configs/k2hk_evm.h
index ebf46303cb..33e43eb08b 100644
--- a/include/configs/k2hk_evm.h
+++ b/include/configs/k2hk_evm.h
@@ -17,14 +17,14 @@
/* U-Boot general configuration */
#define CONFIG_SYS_PROMPT "K2HK EVM # "
-#define KS2_ARGS_UBI "args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "\
- "root=ubi0:rootfs rootflags=sync rw ubi.mtd=2,2048\0"
-
-#define KS2_FDT_NAME "name_fdt=k2hk-evm.dtb\0"
-#define KS2_ADDR_MON "addr_mon=0x0c5f0000\0"
-#define KS2_NAME_MON "name_mon=skern-k2hk-evm.bin\0"
-#define NAME_UBOOT "name_uboot=u-boot-spi-k2hk-evm.gph\0"
-#define NAME_UBI "name_ubi=k2hk-evm-ubifs.ubi\0"
+#define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS \
+ "addr_mon=0x0c5f0000\0" \
+ "args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs " \
+ "root=ubi0:rootfs rootflags=sync rw ubi.mtd=2,2048\0" \
+ "name_fdt=k2hk-evm.dtb\0" \
+ "name_mon=skern-k2hk-evm.bin\0" \
+ "name_ubi=k2hk-evm-ubifs.ubi\0" \
+ "name_uboot=u-boot-spi-k2hk-evm.gph\0"
#include <configs/ks2_evm.h>