1 #ifndef __MACH_ROCKCHIP_LOADER_H
2 #define __MACH_ROCKCHIP_LOADER_H
4 #define SYS_LOADER_REBOOT_FLAG 0x5242C300 //high 24 bits is tag, low 8 bits is type
5 #define SYS_KERNRL_REBOOT_FLAG 0xC3524200 //high 24 bits is tag, low 8 bits is type
8 BOOT_NORMAL = 0, /* normal boot */
9 BOOT_LOADER, /* enter loader rockusb mode */
10 BOOT_MASKROM, /* enter maskrom rockusb mode (not support now) */
11 BOOT_RECOVER, /* enter recover */
12 BOOT_NORECOVER, /* do not enter recover */
13 BOOT_SECONDOS, /* boot second OS (not support now)*/
14 BOOT_WIPEDATA, /* enter recover and wipe data. */
15 BOOT_WIPEALL, /* enter recover and wipe all data. */
16 BOOT_CHECKIMG, /* check firmware img with backup part(in loader mode)*/
17 BOOT_FASTBOOT, /* enter fast boot mode */
18 BOOT_SECUREBOOT_DISABLE,
19 BOOT_CHARGING, /* enter charge mode */
20 BOOT_MAX /* MAX VALID BOOT TYPE.*/