Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 405a72c5 authored by Nicolas Ferre's avatar Nicolas Ferre
Browse files

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: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 94d450ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ static void __iomem *at91_shdwc_base;

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";

	/* Simple power-on, just bail out */