]> git.sur5r.net Git - u-boot/commitdiff
board:samsung:trats2: add env variables describing platform
authorPiotr Wilczek <p.wilczek@samsung.com>
Wed, 22 Jan 2014 14:54:36 +0000 (15:54 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 7 Feb 2014 01:06:24 +0000 (10:06 +0900)
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>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/trats2/trats2.c
include/configs/trats2.h

index 62e7fd22242bbbb33abae343d7c1025fabee97e3..c17c24d60a4fbfb2385ec47e7a7271ecedf25198 100644 (file)
@@ -616,6 +616,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();
index b72f4920d90e4ded851b9a53029b581e54654f5c..087471752c6b991472c5f5f21daef3358e307aa5 100644 (file)
 #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
+
 /* Tizen - partitions definitions */
 #define PARTS_CSA              "csa"
 #define PARTS_BOOT             "boot"