Skip to content
Snippets Groups Projects
Commit b36fc17f authored by Troy Kisky's avatar Troy Kisky
Browse files

arch/arm/imx-common/cpu: add CONFIG_RESET_CAUSE_ADDR

parent 0f25fe99
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,14 @@ static char *get_reset_cause(void)
writel(cause, &src_regs->srsr);
reset_cause = cause;
#ifdef CONFIG_RESET_CAUSE_ADDR
{
unsigned *p = (unsigned *)CONFIG_RESET_CAUSE_ADDR;
*p++ = 0x12345678; /* magic value to check for */
*p = cause;
}
#endif
switch (cause) {
case 0x00001:
case 0x00011:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment