]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: watchdog: add a DM driver for the MPC8xx watchdog
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 21 Nov 2018 08:51:45 +0000 (08:51 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 3 Dec 2018 15:44:10 +0000 (10:44 -0500)
commit749c9aae9d59c5f15832b51a75f8959c25316ab1
treec015c00af11ab535a83030393c13ecc6ba901710
parentf55db0afa23de5beedb63c011a879ebbe0f61613
drivers: watchdog: add a DM driver for the MPC8xx watchdog

This patch adds a DM driver for the MPC8xx watchdog.
Basically, the watchdog is enabled by default from the start and
SYPCR register has to be writen once to set the timeout and/or
deactivate the watchdog. Once written, it cannot be written again.

It means that wdt_stop() can be called before wdt_start() to stop the
watchdog, but cannot be called if wdt_start() has been called.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
drivers/watchdog/Kconfig
drivers/watchdog/mpc8xx_wdt.c