blob: 4ff28a1df0e82d437db198a2576c2c7ba1df533c [file] [log] [blame]
Przemyslaw Marczak283a3202014-01-22 11:24:12 +01001#ifndef __SAMSUNG_MISC_COMMON_H__
2#define __SAMSUNG_MISC_COMMON_H__
3
Piotr Wilczek1b5c7662014-01-22 15:54:32 +01004#ifdef CONFIG_REVISION_TAG
5u32 get_board_rev(void);
6#endif
7
8#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
9void set_board_info(void);
10#endif
11
Przemyslaw Marczaka8da5512014-01-22 11:24:17 +010012#ifdef CONFIG_LCD_MENU
13enum {
14 BOOT_MODE_INFO,
15 BOOT_MODE_THOR,
16 BOOT_MODE_UMS,
17 BOOT_MODE_DFU,
Przemyslaw Marczak713f2232014-04-30 13:28:07 +020018 BOOT_MODE_GPT,
Inha Song88bc5f72014-04-30 13:28:08 +020019 BOOT_MODE_ENV,
Przemyslaw Marczaka8da5512014-01-22 11:24:17 +010020 BOOT_MODE_EXIT,
21};
22
Przemyslaw Marczaka8da5512014-01-22 11:24:17 +010023void keys_init(void);
24void check_boot_mode(void);
25#endif /* CONFIG_LCD_MENU */
26
Przemyslaw Marczak283a3202014-01-22 11:24:12 +010027#ifdef CONFIG_CMD_BMP
28void draw_logo(void);
29#endif
30
Przemyslaw Marczakfa9566f2014-09-01 13:50:46 +020031#ifdef CONFIG_SET_DFU_ALT_INFO
Przemyslaw Marczakd0dd6092015-02-17 12:24:11 +010032char *get_dfu_alt_system(char *interface, char *devstr);
33char *get_dfu_alt_boot(char *interface, char *devstr);
Przemyslaw Marczakfa9566f2014-09-01 13:50:46 +020034#endif
Przemyslaw Marczak4d2a92c2014-09-01 13:50:49 +020035void set_board_type(void);
Krzysztof Kozlowski36476ee2019-03-06 19:37:51 +010036void set_board_revision(void);
Przemyslaw Marczak4d2a92c2014-09-01 13:50:49 +020037const char *get_board_type(void);
Przemyslaw Marczakfa9566f2014-09-01 13:50:46 +020038
Przemyslaw Marczak283a3202014-01-22 11:24:12 +010039#endif /* __SAMSUNG_MISC_COMMON_H__ */