From e1a8dfde5a1efa5158bd7740ef6cbb8abc12a27f Mon Sep 17 00:00:00 2001 From: Cédric Le Goater Date: Tue, 16 Oct 2018 13:57:11 +0200 Subject: watchdog: aspeed: restore default value of reset_mask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Simon Glass --- drivers/watchdog/ast_wdt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/watchdog/ast_wdt.c') diff --git a/drivers/watchdog/ast_wdt.c b/drivers/watchdog/ast_wdt.c index 477605e722..59afa21efa 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; } -- cgit v1.2.3