Skip to contentSkip to conversation

watchdog: Add Allwinner watchdog driver

RFC PATCH New Jagan Teki 1 participant 1 message Apr 19, 2019

Subsystems (2)
lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

RFC PATCH 1/1 watchdog: Add Allwinner watchdog driver

This patch add watchdog driver for Allwinner SoCs.

Initial non-dm driver has send by 'Chris Blake' So I keep his author on the driver itself.

---
 drivers/watchdog/Kconfig     |   7 ++
 drivers/watchdog/Makefile    |   1 +
 drivers/watchdog/sunxi_wdt.c | 207 +++++++++++++++++++++++++++++++++++
 3 files changed, 215 insertions(+)
 create mode 100644 drivers/watchdog/sunxi_wdt.c
drivers/watchdog/Kconfig +7 -0
index 115fc4551f..79fd58048e 100644
@@ -117,6 +117,13 @@ config WDT_MTK
 	  The watchdog timer is stopped when initialized.
 	  It performs full SoC reset.
 
+config WDT_SUNXI
+	bool "Allwinner SoC watchdog support"
+	depends on WDT
+	default y if ARCH_SUNXI
+	help
+	  Select this to enable watchdog timer for Allwinner SoCs.
+
 config XILINX_TB_WATCHDOG
 	bool "Xilinx Axi watchdog timer support"
 	depends on WDT
drivers/watchdog/Makefile +1 -0
index d901240ad1..16003a8fc6 100644
@@ -27,3 +27,4 @@ obj-$(CONFIG_WDT_CDNS) += cdns_wdt.o
 obj-$(CONFIG_MPC8xx_WATCHDOG) += mpc8xx_wdt.o
 obj-$(CONFIG_WDT_MT7621) += mt7621_wdt.o
 obj-$(CONFIG_WDT_MTK) += mtk_wdt.o
+obj-$(CONFIG_WDT_SUNXI) += sunxi_wdt.o
drivers/watchdog/sunxi_wdt.c new file +207 -0

207 lines not on this page · raw message

Signature · 1 line
2.18.0.321.gffc6fa0e3