mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-19 19:28:36 +00:00
d50c41efcd
This change adds declaration of functions: - set_board_type() - called at board_early_init_f() - get_board_type() - called at checkboard() For supporting multiple board types in a one config - it is welcome to display the current board model. This is what get_board_type() should return. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
41 lines
752 B
C
41 lines
752 B
C
#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,
|
|
BOOT_MODE_THOR,
|
|
BOOT_MODE_UMS,
|
|
BOOT_MODE_DFU,
|
|
BOOT_MODE_GPT,
|
|
BOOT_MODE_ENV,
|
|
BOOT_MODE_EXIT,
|
|
};
|
|
|
|
void keys_init(void);
|
|
void check_boot_mode(void);
|
|
#endif /* CONFIG_LCD_MENU */
|
|
|
|
#ifdef CONFIG_CMD_BMP
|
|
void draw_logo(void);
|
|
#endif
|
|
|
|
#ifdef CONFIG_SET_DFU_ALT_INFO
|
|
char *get_dfu_alt_system(void);
|
|
char *get_dfu_alt_boot(void);
|
|
void set_dfu_alt_info(void);
|
|
#endif
|
|
#ifdef CONFIG_BOARD_TYPES
|
|
void set_board_type(void);
|
|
const char *get_board_type(void);
|
|
#endif
|
|
|
|
#endif /* __SAMSUNG_MISC_COMMON_H__ */
|