Skip to contentSkip to conversation

watchdog: New module to add NCT6692D watchdog functionality

PATCH New David Ober 1 participant 1 message Aug 8, 2023 Watchdog device drivers

lore
Share & tools
lore

David Ober

author
#0 lore raw

PATCH v4 1/1 watchdog: New module to add NCT6692D watchdog functionality

The new module adds in the basic functionality of the NCT6692D watchdog driver. This functionality is added to support the Lenovo SE30 device

V2 removed report functions as they are not used
V2 combined repeated code into function as suggested
V2 Formating and syntax changes needed by reviewer and --strict option
V3 remove unused variable
V3 use constants directly instead of assigning to struct value and then using that value V4 rename function shm_get_new_id to shm_get_ec_ready and move common code there V4 remove unneeded read calls
V4 change when reserve region is called to reduce the number of times called V4 fix so return values are used or removed

---
 drivers/watchdog/Kconfig       |  11 +
 drivers/watchdog/Makefile      |   1 +
 drivers/watchdog/nct6692_wdt.c | 493 +++++++++++++++++++++++++++++++++
 3 files changed, 505 insertions(+)
 create mode 100644 drivers/watchdog/nct6692_wdt.c
drivers/watchdog/Kconfig +11 -0
index f22138709bf5..8cea34057030 100644
@@ -1672,6 +1672,17 @@ config SIEMENS_SIMATIC_IPC_WDT
 	  To compile this driver as a module, choose M here: the module will be
 	  called simatic-ipc-wdt.
 
+config NCT6692_WDT
+	tristate "Nuvoton NCT6692D Watchdog"
+	depends on HAS_IOMEM
+	select WATCHDOG_CORE
+	help
+	  If you say yes here you get support for the hardware watchdog
+	  functionality of the Nuvoton NCT6692D eSIO chip.
+
+	  This driver can also be built as a module. If so, the module
+	  will be called nct6692_wdt.
+
 # M68K Architecture
 
 config M54xx_WATCHDOG
drivers/watchdog/Makefile +1 -0
index b4c4ccf2d703..2ec1e703faae 100644
@@ -151,6 +151,7 @@ obj-$(CONFIG_NIC7018_WDT) += nic7018_wdt.o
 obj-$(CONFIG_MLX_WDT) += mlx_wdt.o
 obj-$(CONFIG_KEEMBAY_WATCHDOG) += keembay_wdt.o
 obj-$(CONFIG_SIEMENS_SIMATIC_IPC_WDT) += simatic-ipc-wdt.o
+obj-$(CONFIG_NCT6692D_WDT) += nct6692_wdt.o
 
 # M68K Architecture
 obj-$(CONFIG_M54xx_WATCHDOG) += m54xx_wdt.o
drivers/watchdog/nct6692_wdt.c new file +493 -0

493 lines not on this page · raw message

Signature · 1 line
2.34.1