soc: exynos: add reboot-mode header 97/199697/3
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 14 Feb 2019 06:03:19 +0000 (15:03 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 15 Feb 2019 08:36:59 +0000 (17:36 +0900)
Exynos platform uses a SYSCON mapped pmu 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.

Change-Id: I83bfd3df79652ba55e158fc9e0a56724597ef67d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
include/dt-bindings/soc/exynos,boot-mode.h [new file with mode: 0644]

diff --git a/include/dt-bindings/soc/exynos,boot-mode.h b/include/dt-bindings/soc/exynos,boot-mode.h
new file mode 100644 (file)
index 0000000..fca124b
--- /dev/null
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __EXYNOS_BOOT_MODE_H
+#define __EXYNOS_BOOT_MODE_H
+
+/* high 24-bits is tag, low 8-bits is type */
+#define REBOOT_FLAG            0x12345670
+/* normal boot */
+#define BOOT_NORMAL            (REBOOT_FLAG + 0)
+/* enter bootloader thor download mode */
+#define BOOT_BL_DOWNLOAD       (REBOOT_FLAG + 1)
+
+#endif