[U-Boot] [PATCH V2 5/8] board:samsung:universal: add env variables describing platform
Przemyslaw Marczak
p.marczak at samsung.com
Thu Jan 23 09:41:02 CET 2014
Hello Piotr,
On 01/22/2014 03:54 PM, Piotr Wilczek wrote:
> This patch adds variables describing platform (soc, board, vendor)
> to default environment.
>
> Signed-off-by: Piotr Wilczek <p.wilczek at samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> Cc: Przemyslaw Marczak <p.marczak at samsung.com>
> ---
> Changes for V2:
> - rebased on patchset [PATCH v6 00/11] Introduce Samsung misc file and LCD menu
>
> board/samsung/universal_c210/universal.c | 3 +++
> include/configs/s5pc210_universal.h | 3 +++
> 2 files changed, 6 insertions(+)
>
> diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c
> index 98b387f..5ce74b7 100644
> --- a/board/samsung/universal_c210/universal.c
> +++ b/board/samsung/universal_c210/universal.c
> @@ -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();
> diff --git a/include/configs/s5pc210_universal.h b/include/configs/s5pc210_universal.h
> index bfb044b..67921e9 100644
> --- a/include/configs/s5pc210_universal.h
> +++ b/include/configs/s5pc210_universal.h
> @@ -124,6 +124,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 \
> "updateb=" \
> "onenand erase 0x0 0x100000;" \
>
Acked-by: Przemyslaw Marczak <p.marczak at samsung.com>
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com
More information about the U-Boot
mailing list