[U-Boot] [PATCH 0/2] Watchdog: Add support for sunxi hardware watchdog

Chris Blake chrisrblake93 at gmail.com
Tue Sep 4 01:06:13 UTC 2018


The following patches are needed to add support for the hardware watchdog
found in most sunxi SoC's.

The patches below have only been tested on a sun50i device (H5 SoC) and work
as expected. The actual sunxi_wdt.c was roughly based off of the mainline
linux driver, and is enabled by adding CONFIG_SUNXI_WDT to your config. It is
not enabled by default.

Chris Blake (2):
  watchdog: Fix SPL builds when watchdog is enabled
  watchdog: Add sunxi watchdog driver

 common/board_f.c             |   3 +-
 drivers/watchdog/Kconfig     |  18 ++++++++
 drivers/watchdog/Makefile    |   1 +
 drivers/watchdog/sunxi_wdt.c | 103 +++++++++++++++++++++++++++++++++++++++++++
 include/watchdog.h           |   4 +-
 5 files changed, 126 insertions(+), 3 deletions(-)
 create mode 100644 drivers/watchdog/sunxi_wdt.c

-- 
2.7.4



More information about the U-Boot mailing list