tegra_wdt: support default watchdog api
authorJeetesh Burman <jburman@nvidia.com>
Tue, 17 Dec 2013 12:02:59 +0000 (17:02 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Mon, 5 May 2014 15:14:09 +0000 (08:14 -0700)
commit8e435e6e4d7155eeffc1fe60ac98b7dab83ed4ec
tree755c75a6031ee094df1e6c1b2baa16f96162d88c
parent3f41b064189a7ee9d2d04b12ad3d15c416366f5d
tegra_wdt: support default watchdog api

Reworked driver in order to properly support default watchdog api
such as triggering by writing a character and disable by sending
a magic character. Renamed ENABLE_ON_PROBE to ENABLE_HEARTBEAT
which triggers the watchdog using the interrupt service routine.

Original patch:
http://git.toradex.com/gitweb/linux-toradex.git/commitdiff/5da592b805718b4f33897d642f577b1e6511bc2b

Bug 1402031

Change-Id: I33ef556dac6d6717cadc00f8937437b925dc2ca3
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/346477
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/watchdog/Kconfig
drivers/watchdog/tegra_wdt.c