[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1574746490-625-4-git-send-email-freddy.hsin@mediatek.com>
Date: Tue, 26 Nov 2019 13:34:49 +0800
From: <freddy.hsin@...iatek.com>
To: <sre@...nel.org>, <linux-pm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <wim@...ux-watchdog.org>,
<linux@...ck-us.net>, <matthias.bgg@...il.com>,
<linux-watchdog@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>, <robh+dt@...nel.org>,
<mark.rutland@....com>, <devicetree@...r.kernel.org>
CC: <Chang-An.Chen@...iatek.com>, <wsd_upstream@...iatek.com>,
Freddy Hsin <freddy.hsin@...iatek.com>
Subject: [PATCH v1 3/4] soc: mediatek: add reboot-mode header
From: Freddy Hsin <freddy.hsin@...iatek.com>
Mediatek platform use a RGU (Reset Generation Unit) mapped
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.
Signed-off-by: Freddy Hsin <freddy.hsin@...iatek.com>
---
include/dt-bindings/soc/mediatek,boot-mode.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 include/dt-bindings/soc/mediatek,boot-mode.h
diff --git a/include/dt-bindings/soc/mediatek,boot-mode.h b/include/dt-bindings/soc/mediatek,boot-mode.h
new file mode 100644
index 0000000..f7d5107
--- /dev/null
+++ b/include/dt-bindings/soc/mediatek,boot-mode.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (c) 2019 MediaTek Inc.
+ */
+#ifndef __MEDIATEK_BOOT_MODE_H
+#define __MEDIATEK_BOOT_MODE_H
+
+#define BOOT_CHARGER 1
+#define BOOT_RECOVERY 2
+#define BOOT_BOOTLOADER 3
+#define BOOT_DM_VERITY 4
+#define BOOT_KPOC 5
+#define BOOT_DDR_RSVD 6
+#define BOOT_META 7
+#define BOOT_RPMBPK 8
+
+#endif
--
1.7.9.5
Powered by blists - more mailing lists