Skip to contentSkip to conversation

cmd: add wdt command

PATCH New Michael Walle 2 participants 2 messages Apr 6, 2019 – Apr 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: add wdt command

Add a command to control the watchdog devices. This is useful if the watchdog is rather long running (eg. seconds) and it should be controlled by scripts. It is also handy during debugging.

---
 cmd/Kconfig  |   6 +++
 cmd/Makefile |   1 +
 cmd/wdt.c    | 174 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 181 insertions(+)
 create mode 100644 cmd/wdt.c
cmd/Kconfig +6 -0
index 0b07b3b9d7..2bdbfcb3d0 100644
@@ -1101,6 +1101,12 @@ config CMD_VIRTIO
 	help
 	  VirtIO block device support
 
+config CMD_WDT
+	bool "wdt"
+	depends on WDT
+	help
+	  This provides commands to control the watchdog timer devices.
+
 config CMD_AXI
 	bool "axi"
 	depends on AXI
cmd/Makefile +1 -0
index acb85f49fb..6b1c6b094e 100644
@@ -142,6 +142,7 @@ obj-$(CONFIG_CMD_UBIFS) += ubifs.o
 obj-$(CONFIG_CMD_UNIVERSE) += universe.o
 obj-$(CONFIG_CMD_UNZIP) += unzip.o
 obj-$(CONFIG_CMD_VIRTIO) += virtio.o
+obj-$(CONFIG_CMD_WDT) += wdt.o
 obj-$(CONFIG_CMD_LZMADEC) += lzmadec.o
 
 obj-$(CONFIG_CMD_USB) += usb.o disk.o
cmd/wdt.c new file +174 -0

174 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 cmd: add wdt command

Quoted 5 lines · Michael Walle

Add a command to control the watchdog devices. This is useful if the watchdog is rather long running (eg. seconds) and it should be controlled by scripts. It is also handy during debugging.

Applied to u-boot-marvell/master.

Thanks,
Stefan