aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Stuebner <[email protected]>2016-08-11 20:03:40 +0200
committerHeiko Stuebner <[email protected]>2016-08-11 20:03:40 +0200
commitd6aa084242f1cbc66c454fc6a30ef1db8a5e5383 (patch)
tree2f806b8c6747c383edb457800a7b23dd538ddd0a
parente7b47caf309727dc39ec94c3ea74bef4b2276faf (diff)
parent18a21e2c079a01805607bb474b3536a99620d162 (diff)
Merge branch 'v4.9-shared/soc-hdr' into v4.9-armsoc/dts64
-rw-r--r--include/dt-bindings/soc/rockchip,boot-mode.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/dt-bindings/soc/rockchip,boot-mode.h b/include/dt-bindings/soc/rockchip,boot-mode.h
new file mode 100644
index 000000000000..ae7c867e736a
--- /dev/null
+++ b/include/dt-bindings/soc/rockchip,boot-mode.h
@@ -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