Skip to content
Snippets Groups Projects
Commit 2ac9a35b authored by Piotr Wilczek's avatar Piotr Wilczek Committed by Minkyu Kang
Browse files

board:samsung:goni: add env variables describing platform


This patch adds variables describing platform (soc, board, vendor)
to default environment.

Signed-off-by: default avatarPiotr Wilczek <p.wilczek@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Cc: Mateusz Zalega <m.zalega@samsung.com>
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent eee2fab0
No related branches found
No related tags found
No related merge requests found
...@@ -13,10 +13,17 @@ ...@@ -13,10 +13,17 @@
#include <usb/s3c_udc.h> #include <usb/s3c_udc.h>
#include <asm/arch/cpu.h> #include <asm/arch/cpu.h>
#include <power/max8998_pmic.h> #include <power/max8998_pmic.h>
#include <samsung/misc.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
static struct s5pc110_gpio *s5pc110_gpio; static struct s5pc110_gpio *s5pc110_gpio;
u32 get_board_rev(void)
{
return 0;
}
int board_init(void) int board_init(void)
{ {
/* Set Initial global variables */ /* Set Initial global variables */
...@@ -173,3 +180,13 @@ struct s3c_plat_otg_data s5pc110_otg_data = { ...@@ -173,3 +180,13 @@ struct s3c_plat_otg_data s5pc110_otg_data = {
.usb_phy_ctrl = S5PC110_USB_PHY_CONTROL, .usb_phy_ctrl = S5PC110_USB_PHY_CONTROL,
}; };
#endif #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
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_SETUP_MEMORY_TAGS
#define CONFIG_CMDLINE_TAG #define CONFIG_CMDLINE_TAG
#define CONFIG_REVISION_TAG
#define CONFIG_INITRD_TAG #define CONFIG_INITRD_TAG
#define CONFIG_CMDLINE_EDITING #define CONFIG_CMDLINE_EDITING
...@@ -113,8 +114,13 @@ ...@@ -113,8 +114,13 @@
#define CONFIG_UBIFS_OPTION "rootflags=bulk_read,no_chk_data_crc" #define CONFIG_UBIFS_OPTION "rootflags=bulk_read,no_chk_data_crc"
#define CONFIG_MISC_COMMON
#define CONFIG_MISC_INIT_R
#define CONFIG_ENV_OVERWRITE #define CONFIG_ENV_OVERWRITE
#define CONFIG_SYS_CONSOLE_IS_IN_ENV #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 \ #define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_UPDATEB \ CONFIG_UPDATEB \
"updatek=" \ "updatek=" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment