提交 405a72c5 编写于 作者: N Nicolas Ferre

power: reset: at91-poweroff: fix wakeup status register index

The wakeup status is read from Shutdown Status Register and not the
SHDW_CR which is the one at address 0.
Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com>
上级 94d450ed
...@@ -51,7 +51,7 @@ static void __iomem *at91_shdwc_base; ...@@ -51,7 +51,7 @@ static void __iomem *at91_shdwc_base;
static void __init at91_wakeup_status(void) static void __init at91_wakeup_status(void)
{ {
u32 reg = readl(at91_shdwc_base); u32 reg = readl(at91_shdwc_base + AT91_SHDW_SR);
char *reason = "unknown"; char *reason = "unknown";
/* Simple power-on, just bail out */ /* Simple power-on, just bail out */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册