hw21: introduce cpu watchdog reset reason.
BugzID: 74817 Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
This commit is contained in:
parent
6cc285809d
commit
a6b26419bc
|
|
@ -507,6 +507,14 @@ static void check_reset_reason(unsigned int reset_reason_shm_location)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* CPU reset reason -> PRM_RSTST ; watchdog reset = 0x00000010*/
|
||||||
|
int cpu_reset_reason = readl(PRM_RSTST);
|
||||||
|
if (cpu_reset_reason & 0x10) {
|
||||||
|
start_reason |= SR_WATCHDOG;
|
||||||
|
}
|
||||||
|
/* reset the reset reason register */
|
||||||
|
writel(0x13, PRM_RSTST);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check Wakeup Events
|
* Check Wakeup Events
|
||||||
* Event Register A holds:
|
* Event Register A holds:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue