summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2016-08-11 19:57:48 +0200
committerHeiko Stuebner <heiko@sntech.de>2016-08-11 19:57:48 +0200
commita148a05512b62b1d4beb35a76733017f018ba20a (patch)
treef7ca87a6da2fe8030937096f9599044c61a75329
parent546a3521f251462128d877e48fb3544c74976ce4 (diff)
parent18a21e2c079a01805607bb474b3536a99620d162 (diff)
Merge branch 'v4.9-shared/soc-hdr' into v4.9-armsoc/dts32
-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