boot_mode.h 659 B

12345678910111213141516171819202122232425
  1. #ifndef __REBOOT_MODE_H
  2. #define __REBOOT_MODE_H
  3. /* high 24 bits is tag, low 8 bits is type */
  4. #define REBOOT_FLAG 0x5242C300
  5. /* normal boot */
  6. #define BOOT_NORMAL (REBOOT_FLAG + 0)
  7. /* enter loader rockusb mode */
  8. #define BOOT_LOADER (REBOOT_FLAG + 1)
  9. /* enter recovery */
  10. #define BOOT_RECOVERY (REBOOT_FLAG + 3)
  11. /* enter fastboot mode */
  12. #define BOOT_FASTBOOT (REBOOT_FLAG + 9)
  13. /* enter charging mode */
  14. #define BOOT_CHARGING (REBOOT_FLAG + 11)
  15. /* enter usb mass storage mode */
  16. #define BOOT_UMS (REBOOT_FLAG + 12)
  17. /* enter bootrom download mode */
  18. #define BOOT_BROM_DOWNLOAD 0xEF08A53C
  19. #ifndef __ASSEMBLY__
  20. int setup_boot_mode(void);
  21. #endif
  22. #endif