From: Seung-Woo Kim Date: Thu, 14 Feb 2019 06:03:19 +0000 (+0900) Subject: soc: exynos: add reboot-mode header X-Git-Tag: submit/tizen/20190329.020226~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F199697%2F3;p=platform%2Fkernel%2Flinux-exynos.git 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 --- 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