summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Wilczek <p.wilczek@samsung.com>2014-01-22 15:54:35 +0100
committerMinkyu Kang <mk7.kang@samsung.com>2014-02-07 10:06:24 +0900
commit943eacde686f50fc82d18af88825ff74d8d89967 (patch)
tree24bdc8f5bcf24e0a641475f94c9a41b4a7a4d194
parent815a6072f06557ce776744ef2c3b57189a2abd3e (diff)
downloadu-boot-imx-943eacde686f50fc82d18af88825ff74d8d89967.zip
u-boot-imx-943eacde686f50fc82d18af88825ff74d8d89967.tar.gz
u-boot-imx-943eacde686f50fc82d18af88825ff74d8d89967.tar.bz2
board:samsung:trats: add env variables describing platform
This patch adds variables describing platform (soc, board, vendor) to default environment. Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r--board/samsung/trats/trats.c3
-rw-r--r--include/configs/trats.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index c6664e7..b725505 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -791,6 +791,9 @@ void init_panel_info(vidinfo_t *vid)
#ifdef CONFIG_MISC_INIT_R
int misc_init_r(void)
{
+#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
+ set_board_info();
+#endif
#ifdef CONFIG_LCD_MENU
keys_init();
check_boot_mode();
diff --git a/include/configs/trats.h b/include/configs/trats.h
index 41de414..6e14a59 100644
--- a/include/configs/trats.h
+++ b/include/configs/trats.h
@@ -154,6 +154,9 @@
#define CONFIG_SYS_CONSOLE_INFO_QUIET
#define CONFIG_SYS_CONSOLE_IS_IN_ENV
+#define CONFIG_ENV_VARS_UBOOT_CONFIG
+#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
+
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootk=" \
"run loaddtb; run loaduimage; bootm 0x40007FC0 - ${fdtaddr}\0" \