diff options
author | Cédric Le Goater <clg@kaod.org> | 2018-10-16 13:57:11 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-10-22 09:18:49 -0400 |
commit | e1a8dfde5a1efa5158bd7740ef6cbb8abc12a27f (patch) | |
tree | a482b61ece210720b710ae20983832332abecf12 /drivers/watchdog | |
parent | 290097fe2736dd23bfb926658d188db533b59779 (diff) | |
download | u-boot-e1a8dfde5a1efa5158bd7740ef6cbb8abc12a27f.zip u-boot-e1a8dfde5a1efa5158bd7740ef6cbb8abc12a27f.tar.gz u-boot-e1a8dfde5a1efa5158bd7740ef6cbb8abc12a27f.tar.bz2 |
watchdog: aspeed: restore default value of reset_mask
This is required for the current Linux kernel to reboot. It should also
probably be fixed in Linux.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/ast_wdt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/ast_wdt.c b/drivers/watchdog/ast_wdt.c index 477605e..59afa21 100644 --- a/drivers/watchdog/ast_wdt.c +++ b/drivers/watchdog/ast_wdt.c @@ -50,6 +50,7 @@ static int ast_wdt_stop(struct udevice *dev) clrbits_le32(&priv->regs->ctrl, WDT_CTRL_EN); + writel(WDT_RESET_DEFAULT, &priv->regs->reset_mask); return 0; } |