From 19fb744f04c6f68020d13175e917cac743647fd6 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Thu, 14 Feb 2019 15:03:19 +0900 Subject: [PATCH] soc: exynos: add reboot-mode header 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 --- include/dt-bindings/soc/exynos,boot-mode.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/dt-bindings/soc/exynos,boot-mode.h diff --git a/include/dt-bindings/soc/exynos,boot-mode.h b/include/dt-bindings/soc/exynos,boot-mode.h new file mode 100644 index 000000000000..fca124bc67b2 --- /dev/null +++ b/include/dt-bindings/soc/exynos,boot-mode.h @@ -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 -- 2.34.1