2014-01-22 10:24:12 +00:00
|
|
|
#ifndef __SAMSUNG_MISC_COMMON_H__
|
|
|
|
#define __SAMSUNG_MISC_COMMON_H__
|
|
|
|
|
2014-01-22 14:54:32 +00:00
|
|
|
#ifdef CONFIG_REVISION_TAG
|
|
|
|
u32 get_board_rev(void);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
|
|
|
void set_board_info(void);
|
|
|
|
#endif
|
|
|
|
|
2014-01-22 10:24:17 +00:00
|
|
|
#ifdef CONFIG_LCD_MENU
|
|
|
|
enum {
|
|
|
|
BOOT_MODE_INFO,
|
|
|
|
BOOT_MODE_THOR,
|
|
|
|
BOOT_MODE_UMS,
|
|
|
|
BOOT_MODE_DFU,
|
2014-04-30 11:28:07 +00:00
|
|
|
BOOT_MODE_GPT,
|
2014-04-30 11:28:08 +00:00
|
|
|
BOOT_MODE_ENV,
|
2014-01-22 10:24:17 +00:00
|
|
|
BOOT_MODE_EXIT,
|
|
|
|
};
|
|
|
|
|
|
|
|
void keys_init(void);
|
|
|
|
void check_boot_mode(void);
|
|
|
|
#endif /* CONFIG_LCD_MENU */
|
|
|
|
|
2014-01-22 10:24:12 +00:00
|
|
|
#ifdef CONFIG_CMD_BMP
|
|
|
|
void draw_logo(void);
|
|
|
|
#endif
|
|
|
|
|
2014-09-01 11:50:46 +00:00
|
|
|
#ifdef CONFIG_SET_DFU_ALT_INFO
|
2015-02-17 11:24:11 +00:00
|
|
|
char *get_dfu_alt_system(char *interface, char *devstr);
|
|
|
|
char *get_dfu_alt_boot(char *interface, char *devstr);
|
2014-09-01 11:50:46 +00:00
|
|
|
#endif
|
2014-09-01 11:50:49 +00:00
|
|
|
#ifdef CONFIG_BOARD_TYPES
|
|
|
|
void set_board_type(void);
|
|
|
|
const char *get_board_type(void);
|
|
|
|
#endif
|
2014-09-01 11:50:46 +00:00
|
|
|
|
2014-01-22 10:24:12 +00:00
|
|
|
#endif /* __SAMSUNG_MISC_COMMON_H__ */
|