[<prev] [next>] [day] [month] [year] [list]
Message-ID: <bf2cac8e59584b9792e9134387a79fe0@mtkmbs07n1.mediatek.inc>
Date: Tue, 26 Nov 2019 05:40:59 +0000
From: Freddy Hsin (辛恒豐)
<Freddy.Hsin@...iatek.com>
To: "sre@...nel.org" <sre@...nel.org>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"wim@...ux-watchdog.org" <wim@...ux-watchdog.org>,
"linux@...ck-us.net" <linux@...ck-us.net>,
"matthias.bgg@...il.com" <matthias.bgg@...il.com>,
"linux-watchdog@...r.kernel.org" <linux-watchdog@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-mediatek@...ts.infradead.org"
<linux-mediatek@...ts.infradead.org>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"mark.rutland@....com" <mark.rutland@....com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
CC: Chang-An Chen (陳昶安)
<Chang-An.Chen@...iatek.com>,
wsd_upstream <wsd_upstream@...iatek.com>,
Freddy Hsin (辛恒豐)
<Freddy.Hsin@...iatek.com>
Subject: [PATCH v1 0/4] add MTK reboot mode driver
This driver parses the reboot commands like "reboot bootloader"
and "reboot recovery" to get a boot mode described in the device tree , then call the write interfae to store the boot mode in mtk RGU (reset generation unit) non-volatile register, which can be read by the bootloader after system reboot, then the bootloader can take different action according to the mode stored.
Freddy Hsin (4):
power: reset: add reboot mode driver
watchdog: populate reboot mode node in toprgu node of MTK RGU (Reset
Generation Unit)
soc: mediatek: add reboot-mode header
dt-binding: power: reset: Add documentation for MTK RGU (Reset
Gernation Unit) reboot driver
.../devicetree/bindings/power/reset/mtk-reboot.txt | 30 +++++
drivers/power/reset/Kconfig | 11 ++
drivers/power/reset/Makefile | 1 +
drivers/power/reset/mtk-reboot.c | 116 ++++++++++++++++++++
drivers/watchdog/mtk_wdt.c | 3 +
include/dt-bindings/soc/mediatek,boot-mode.h | 17 +++
6 files changed, 178 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/reset/mtk-reboot.txt
create mode 100644 drivers/power/reset/mtk-reboot.c create mode 100644 include/dt-bindings/soc/mediatek,boot-mode.h
Powered by blists - more mailing lists