lkml.org 
[lkml]   [2019]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 3/4] soc: mediatek: add reboot-mode header
Date
From: Freddy Hsin <freddy.hsin@mediatek.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@mediatek.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
\
 
 \ /
  Last update: 2019-11-26 06:36    [W:0.064 / U:7.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site