]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board:samsung:universal: add env variables describing platform
authorPiotr Wilczek <p.wilczek@samsung.com>
Wed, 22 Jan 2014 14:54:34 +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>
Cc: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal_c210/universal.c
include/configs/s5pc210_universal.h

index ced4caa86fd810be057dcd21dbc61ae50a384926..96da7e0861eb996586388ab815095a1d1dd9d280 100644 (file)
@@ -516,6 +516,9 @@ int board_init(void)
 #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 bfb044b087b3f5adddb5e5ca11f0d12fb2a74868..67921e900be196ad40c41d22c764f038b510bdea 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
+
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "updateb=" \
                "onenand erase 0x0 0x100000;" \