soc: rockchip: add reboot-mode header
authorAndy Yan <andy.yan@rock-chips.com>
Wed, 6 Jul 2016 13:28:34 +0000 (21:28 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 11 Aug 2016 17:57:25 +0000 (19:57 +0200)
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 <andy.yan@rock-chips.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
include/dt-bindings/soc/rockchip,boot-mode.h [new file with mode: 0644]

diff --git a/include/dt-bindings/soc/rockchip,boot-mode.h b/include/dt-bindings/soc/rockchip,boot-mode.h
new file mode 100644 (file)
index 0000000..ae7c867
--- /dev/null
@@ -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
This page took 0.024883 seconds and 5 git commands to generate.