dm: Simple Watchdog uclass
authormaxims@google.com <maxims@google.com>
Mon, 17 Apr 2017 19:00:21 +0000 (12:00 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 8 May 2017 15:57:30 +0000 (11:57 -0400)
commit0753bc2d30d7ca4a0ea4ef7f97083961c3a9d0e0
treeddeb5811ed8c1e75572e109c989f0ce593c8b385
parent17c5fb195376f5883b7f0fdfbf19e42e3be7de43
dm: Simple Watchdog uclass

This is a simple uclass for Watchdog Timers. It has four operations:
start, restart, reset, stop. Drivers must implement start, restart and
stop operations, while implementing reset is optional: It's default
implementation expires watchdog timer in one clock tick.

Signed-off-by: Maxim Sloyko <maxims@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
arch/sandbox/include/asm/state.h
configs/sandbox_defconfig
drivers/watchdog/Kconfig
drivers/watchdog/Makefile
drivers/watchdog/sandbox_wdt.c [new file with mode: 0644]
drivers/watchdog/wdt-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/wdt.h [new file with mode: 0644]
test/dm/Makefile
test/dm/wdt.c [new file with mode: 0644]