Skip to content

Commit

Permalink
soc: rockchip: add reboot-mode header
Browse files Browse the repository at this point in the history
Rockchip platform use a SYSCON mapped register store
the reboot mode magic value for bootloader to use when
system reboot.

Add the shared header describing the values firmware expects
for different boot modes.

Signed-off-by: Andy Yan <[email protected]>
Reviewed-by: Matthias Brugger <[email protected]>
Signed-off-by: Heiko Stuebner <[email protected]>
  • Loading branch information
Andy Yan authored and mmind committed Aug 11, 2016
1 parent 29b4817 commit 18a21e2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions include/dt-bindings/soc/rockchip,boot-mode.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#ifndef __ROCKCHIP_BOOT_MODE_H
#define __ROCKCHIP_BOOT_MODE_H

/*high 24 bits is tag, low 8 bits is type*/
#define REBOOT_FLAG 0x5242C300
/* normal boot */
#define BOOT_NORMAL (REBOOT_FLAG + 0)
/* enter bootloader rockusb mode */
#define BOOT_BL_DOWNLOAD (REBOOT_FLAG + 1)
/* enter recovery */
#define BOOT_RECOVERY (REBOOT_FLAG + 3)
/* enter fastboot mode */
#define BOOT_FASTBOOT (REBOOT_FLAG + 9)

#endif

0 comments on commit 18a21e2

Please sign in to comment.