]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a driver for the TI watchdog.
authorRui Paulo <rpaulo@FreeBSD.org>
Sat, 18 Oct 2014 16:59:21 +0000 (16:59 +0000)
committerRui Paulo <rpaulo@FreeBSD.org>
Sat, 18 Oct 2014 16:59:21 +0000 (16:59 +0000)
commit2ffc65f9824fb1d1805f81333125b11801e84e7e
tree242b70e4bde57523c9ac46a21b0ceef781433929
parent5aed7446fe92a8210a88782677cf9dee20ae6c8a
Add a driver for the TI watchdog.

The TI watchdog timer is present on BeagleBone's.  Since 2014, U-Boot
has been booting the BeagleBone with the watchdog enabled.  We need to
disable it on boot to avoid a spurious reset.
The timer isn't exactly precise, but it will do as a watchdog.  This
is also a reflection of the watchdog(9) API.

In the future, we could handle interrupts, but the watchdog(9) API
needs to be a bit smarter before that can happen.

Differential Revision: https://reviews.freebsd.org/D965
Reviewed by: andrew
MFC after: 1 week
Relnotes: yes
sys/arm/conf/BEAGLEBONE
sys/arm/ti/files.ti
sys/arm/ti/ti_wdt.c [new file with mode: 0644]
sys/arm/ti/ti_wdt.h [new file with mode: 0644]