Skip to contentSkip to conversation

watchdog: Add booke watchdog driver

PATCH New Chris Packham 1 participant 1 message Mar 5, 2021 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 watchdog: Add booke watchdog driver

Add a driver for the PowerPC Book E watchdog driver that is present on a number of Freescale/NXP SoCs.

---

Changes in v2:
- Remove #include of common.h
- Add review from Stefan

 drivers/watchdog/Kconfig     |   7 +++
 drivers/watchdog/Makefile    |   1 +
 drivers/watchdog/booke_wdt.c | 106 +++++++++++++++++++++++++++++++++++
 3 files changed, 114 insertions(+)
 create mode 100644 drivers/watchdog/booke_wdt.c
drivers/watchdog/Kconfig +7 -0
index 602ccbe41c00..82a24871451b 100644
@@ -111,6 +111,13 @@ config WDT_BCM6345
 	  The watchdog timer is stopped when initialized.
 	  It performs full SoC reset.
 
+config WDT_BOOKE
+	bool "PowerPC Book-E watchdog driver"
+	depends on WDT && MPC85xx
+	help
+	  Watchdog driver for PowerPC Book-E chips, such as the Freescale
+	  MPC85xx SOCs and the IBM PowerPC 440.
+
 config WDT_CDNS
 	bool "Cadence watchdog timer support"
 	depends on WDT
drivers/watchdog/Makefile +1 -0
index 6e70c7ae19ce..5c7ef593fe53 100644
@@ -21,6 +21,7 @@ obj-$(CONFIG_WDT_ARMADA_37XX) += armada-37xx-wdt.o
 obj-$(CONFIG_WDT_ASPEED) += ast_wdt.o
 obj-$(CONFIG_WDT_AST2600) += ast2600_wdt.o
 obj-$(CONFIG_WDT_BCM6345) += bcm6345_wdt.o
+obj-$(CONFIG_WDT_BOOKE) += booke_wdt.o
 obj-$(CONFIG_WDT_CORTINA) += cortina_wdt.o
 obj-$(CONFIG_WDT_ORION) += orion_wdt.o
 obj-$(CONFIG_WDT_CDNS) += cdns_wdt.o
drivers/watchdog/booke_wdt.c new file +106 -0

106 lines not on this page · raw message

Signature · 1 line
2.30.1