hw21: introduce cpu watchdog reset reason.

BugzID: 74817

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
This commit is contained in:
Lucien Mueller 2021-09-15 16:35:13 +02:00
parent 6cc285809d
commit a6b26419bc
1 changed files with 8 additions and 0 deletions

View File

@ -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: