提交 e1a8dfde 编写于 作者: C Cédric Le Goater 提交者: Tom Rini

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: NCédric Le Goater <clg@kaod.org>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 290097fe
......@@ -57,6 +57,15 @@
#define WDT_RESET_SPI (1 << 24)
#define WDT_RESET_MISC (1 << 25)
#define WDT_RESET_DEFAULT \
(WDT_RESET_ARM | WDT_RESET_COPROC | WDT_RESET_I2C | \
WDT_RESET_MAC1 | WDT_RESET_MAC2 | WDT_RESET_GCRT | \
WDT_RESET_USB20 | WDT_RESET_USB11_HOST | WDT_RESET_USB11_EHCI2 | \
WDT_RESET_VIDEO | WDT_RESET_HAC | WDT_RESET_LPC | \
WDT_RESET_SDSDIO | WDT_RESET_MIC | WDT_RESET_CRT2C | \
WDT_RESET_PWM | WDT_RESET_PECI | WDT_RESET_JTAG | \
WDT_RESET_ADC | WDT_RESET_GPIO | WDT_RESET_MISC)
#ifndef __ASSEMBLY__
struct ast_wdt {
u32 counter_status;
......
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册