xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/boot_mode.h (revision b86dc4195f38b5485788014794f2befd1fc2cc74)
1 #ifndef __REBOOT_MODE_H
2 #define __REBOOT_MODE_H
3 
4 /* high 24 bits is tag, low 8 bits is type */
5 #define REBOOT_FLAG		0x5242C300
6 /* normal boot */
7 #define BOOT_NORMAL		(REBOOT_FLAG + 0)
8 /* enter loader rockusb mode */
9 #define BOOT_LOADER		(REBOOT_FLAG + 1)
10 /* enter recovery */
11 #define BOOT_RECOVERY		(REBOOT_FLAG + 3)
12 /* reboot by panic */
13 #define BOOT_PANIC		(REBOOT_FLAG + 7)
14 /* reboot by watchdog */
15 #define BOOT_WATCHDOG		(REBOOT_FLAG + 8)
16 /* enter fastboot mode */
17 #define BOOT_FASTBOOT		(REBOOT_FLAG + 9)
18 /* enter charging mode */
19 #define BOOT_CHARGING		(REBOOT_FLAG + 11)
20 /* enter usb mass storage mode */
21 #define BOOT_UMS		(REBOOT_FLAG + 12)
22 /* enter bootrom download mode */
23 #define BOOT_BROM_DOWNLOAD	0xEF08A53C
24 
25 #ifndef __ASSEMBLY__
26 int setup_boot_mode(void);
27 #endif
28 
29 #endif
30