diff options
author | Piotr Wilczek <p.wilczek@samsung.com> | 2014-01-22 15:54:33 +0100 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-02-07 10:06:24 +0900 |
commit | 2ac9a35bcd441b06601b8fcfc1d39b6b3d9f0aef (patch) | |
tree | 59b25f19b3297e9c6e1fe4c7dc2150dff750b0a2 /board | |
parent | eee2fab0bddb2c460a96a943d7ed6b0f3718f0fd (diff) | |
download | u-boot-imx-2ac9a35bcd441b06601b8fcfc1d39b6b3d9f0aef.zip u-boot-imx-2ac9a35bcd441b06601b8fcfc1d39b6b3d9f0aef.tar.gz u-boot-imx-2ac9a35bcd441b06601b8fcfc1d39b6b3d9f0aef.tar.bz2 |
board:samsung:goni: 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: Mateusz Zalega <m.zalega@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/samsung/goni/goni.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index 366f648..61b9ece 100644 --- a/board/samsung/goni/goni.c +++ b/board/samsung/goni/goni.c @@ -13,10 +13,17 @@ #include <usb/s3c_udc.h> #include <asm/arch/cpu.h> #include <power/max8998_pmic.h> +#include <samsung/misc.h> + DECLARE_GLOBAL_DATA_PTR; static struct s5pc110_gpio *s5pc110_gpio; +u32 get_board_rev(void) +{ + return 0; +} + int board_init(void) { /* Set Initial global variables */ @@ -173,3 +180,13 @@ struct s3c_plat_otg_data s5pc110_otg_data = { .usb_phy_ctrl = S5PC110_USB_PHY_CONTROL, }; #endif + +#ifdef CONFIG_MISC_INIT_R +int misc_init_r(void) +{ +#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG + set_board_info(); +#endif + return 0; +} +#endif |