diff options
author | Piotr Wilczek <p.wilczek@samsung.com> | 2014-01-22 15:54:32 +0100 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-02-07 10:06:24 +0900 |
commit | eee2fab0bddb2c460a96a943d7ed6b0f3718f0fd (patch) | |
tree | 1393e8d8ba7e569fdbe714aaa3dd1f8392304fca /include | |
parent | d1cbf0a5ad8af65c8c1b9a0c848363de7ede91fe (diff) | |
download | u-boot-eee2fab0bddb2c460a96a943d7ed6b0f3718f0fd.tar.gz |
board:samsung:common: set envs with board unified information
This patch sets envs that describe board information.
The following envs are set: soc_id, soc_rev, board_rev.
Based on this information, if CONFIG_OF_LIBFDT is enabled,
the 'fdtfile' env is set as:
fdtfile=${soc_family}${soc_id}-${board}.dtb
The generated envs are intenionally not saved to persistent storage.
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/samsung/misc.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/samsung/misc.h b/include/samsung/misc.h index 1a6d47f4ca..ede6c1583a 100644 --- a/include/samsung/misc.h +++ b/include/samsung/misc.h @@ -1,6 +1,14 @@ #ifndef __SAMSUNG_MISC_COMMON_H__ #define __SAMSUNG_MISC_COMMON_H__ +#ifdef CONFIG_REVISION_TAG +u32 get_board_rev(void); +#endif + +#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG +void set_board_info(void); +#endif + #ifdef CONFIG_LCD_MENU enum { BOOT_MODE_INFO, @@ -10,10 +18,6 @@ enum { BOOT_MODE_EXIT, }; -#ifdef CONFIG_REVISION_TAG -u32 get_board_rev(void); -#endif - void keys_init(void); void check_boot_mode(void); #endif /* CONFIG_LCD_MENU */ |