aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2016-08-11 20:03:40 +0200
committerHeiko Stuebner <heiko@sntech.de>2016-08-11 20:03:40 +0200
commitd6aa084242f1cbc66c454fc6a30ef1db8a5e5383 (patch)
tree2f806b8c6747c383edb457800a7b23dd538ddd0a
parentarm64: dts: rockchip: remove broken-cd from sdio0 (diff)
parentsoc: rockchip: add reboot-mode header (diff)
downloadwireguard-linux-d6aa084242f1cbc66c454fc6a30ef1db8a5e5383.tar.xz
wireguard-linux-d6aa084242f1cbc66c454fc6a30ef1db8a5e5383.zip
Merge branch 'v4.9-shared/soc-hdr' into v4.9-armsoc/dts64
Diffstat (limited to '')
-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