MIPS: lantiq: add watchdog support
Subsystems (2)
PATCH v6 1/1 MIPS: lantiq: add watchdog support
This patch adds the driver for the watchdog found inside the Lantiq SoC family.
---
Changes in V2
* add comments to explain register access
* cleanup resource allocation
* cleanup clock handling
* whitespace fixes
Changes in V3
* whitespace
* change __iomem void to void __iomem
* typo fixes
* comment style
* fix exit path in init function
Changes in V4
* fixes register offsets (we use a smaller memory window)
* typo in the comments
* add __init to probe function
Changes in V5
* add support for WDIOC_GETBOOTSTATUS and WDIOC_GETSTATUS
* remove ifdefs and add a module parameter for the nowayout feature
* add a remove function
* fix typos
Changes in V6
* WDIOC_SETTIMEOUT should return ltq_wdt_timeout aswell as applying it
drivers/watchdog/Kconfig | 6 + drivers/watchdog/Makefile | 1 + drivers/watchdog/lantiq_wdt.c | 261 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 268 insertions(+), 0 deletions(-) create mode 100644 drivers/watchdog/lantiq_wdt.c
drivers/watchdog/Kconfig +6 -0
@@ -990,6 +990,12 @@ config BCM63XX_WDT To compile this driver as a loadable module, choose M here. The module will be called bcm63xx_wdt. +config LANTIQ_WDT + tristate "Lantiq SoC watchdog" + depends on LANTIQ + help + Hardware driver for the Lantiq SoC Watchdog Timer. + # PARISC Architecture # POWERPC Architecture
drivers/watchdog/Makefile +1 -0
@@ -123,6 +123,7 @@ obj-$(CONFIG_AR7_WDT) += ar7_wdt.o obj-$(CONFIG_TXX9_WDT) += txx9wdt.o obj-$(CONFIG_OCTEON_WDT) += octeon-wdt.o octeon-wdt-y := octeon-wdt-main.o octeon-wdt-nmi.o +obj-$(CONFIG_LANTIQ_WDT) += lantiq_wdt.o # PARISC Architecture
drivers/watchdog/lantiq_wdt.c new file +261 -0
261 lines not on this page · raw message
Signature · 1 line
1.7.2.3
Quoted 5 lines · John Crispin
Signed-off-by John Crispin <[email protected]>Signed-off-by Ralph Hempel <[email protected]>Cc Wim Van Sebroeck <[email protected]>
I've folded your privately sent followon patch to use test_and_set_bit and clear_bit in ltq_wdt_open rsp. ltq_wdt_release as requested by Wim and have queued the result for 2.6.40.
For your enjoyment I'm posting the resulting patch below.
Thanks,
Ralf
Date: Thu, 5 May 2011 23:00:23 +0200 From: John Crispin <[email protected]>
MIPS: Lantiq: Add watchdog support
This patch adds the driver for the watchdog found inside the Lantiq SoC family.
Patchwork: https://patchwork.linux-mips.org/patch/2327/
drivers/watchdog/Kconfig | 6 drivers/watchdog/Makefile | 1 drivers/watchdog/lantiq_wdt.c | 261 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 268 insertions(+)
drivers/watchdog/Kconfig +6 -0
@@ -990,6 +990,12 @@ config BCM63XX_WDT To compile this driver as a loadable module, choose M here. The module will be called bcm63xx_wdt. +config LANTIQ_WDT + tristate "Lantiq SoC watchdog" + depends on LANTIQ + help + Hardware driver for the Lantiq SoC Watchdog Timer. + # PARISC Architecture # POWERPC Architecture
drivers/watchdog/Makefile +1 -0
@@ -123,6 +123,7 @@ obj-$(CONFIG_AR7_WDT) += ar7_wdt.o obj-$(CONFIG_TXX9_WDT) += txx9wdt.o obj-$(CONFIG_OCTEON_WDT) += octeon-wdt.o octeon-wdt-y := octeon-wdt-main.o octeon-wdt-nmi.o +obj-$(CONFIG_LANTIQ_WDT) += lantiq_wdt.o # PARISC Architecture
drivers/watchdog/lantiq_wdt.c new file +261 -0
261 lines not on this page · raw message