Browse Source

vf610twr: Ignore glitches on cause of reset fields during POR

When getting the cause of reset, if POR is set then there is
no need to check for the rest of the reset causes.

Signed-off-by: Juan Gutierrez <b44802@freescale.com>
Signed-off-by: Anthony Felice <tony.felice@timesys.com>
Juan Gutierrez 11 years ago
parent
commit
1118c87bb7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      arch/arm/cpu/armv7/vf610/generic.c

+ 3 - 2
arch/arm/cpu/armv7/vf610/generic.c

@@ -274,6 +274,9 @@ static char *get_reset_cause(void)
 	writel(cause, &src_regs->srsr);
 	cause &= 0xff;
 
+	if (cause & 0x01)
+		cause = 0x01;
+
 	switch (cause) {
 	case 0x01:
 		return "POR";
@@ -283,8 +286,6 @@ static char *get_reset_cause(void)
 		return "CM4 WDOG RESET";
 	case 0x20:
 		return "JTAG HIGH-Z";
-	case 0x65:
-		return "POR";
 	case 0x80:
 		return "EXTERNAL RESET";
 	default: