Linux-Watchdog Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v1 0/4] Support MTK reboot mode driver 
@ 2019-11-26  5:34 freddy.hsin
  2019-11-26  5:34 ` [PATCH v1 1/4] power: reset: add " freddy.hsin
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: freddy.hsin @ 2019-11-26  5:34 UTC (permalink / raw)
  To: sre, linux-pm, linux-kernel, wim, linux, matthias.bgg,
	linux-watchdog, linux-arm-kernel, linux-mediatek, robh+dt,
	mark.rutland, devicetree
  Cc: Chang-An.Chen, wsd_upstream


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, back to index

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26  5:34 [PATCH v1 0/4] Support MTK reboot mode driver freddy.hsin
2019-11-26  5:34 ` [PATCH v1 1/4] power: reset: add " freddy.hsin
2019-11-26  5:34 ` [PATCH v1 2/4] watchdog: populate reboot mode node in toprgu node of MTK RGU (Reset Generation Unit) freddy.hsin
2019-11-26 12:18   ` Guenter Roeck
2019-11-26  5:34 ` [PATCH v1 3/4] soc: mediatek: add reboot-mode header freddy.hsin
2019-11-26  5:34 ` [PATCH v1 4/4] dt-binding: power: reset: Add documentation for MTK RGU (Reset Gernation Unit) reboot driver freddy.hsin
2019-12-05 19:08   ` Rob Herring

Linux-Watchdog Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-watchdog/0 linux-watchdog/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-watchdog linux-watchdog/ https://lore.kernel.org/linux-watchdog \
		linux-watchdog@vger.kernel.org
	public-inbox-index linux-watchdog

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-watchdog


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git