mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-08 11:36:21 -04:00
mx6: Fix reset cause for Power On Reset case
After booting mx6qsabrelite from POR the following is reported: CPU: Freescale i.MX61 family rev1.0 at 792 MHz Reset cause: unknown reset This is because both the POR and WDOG bits are set after reset. Fix this by also checking both bits in the POR case. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
This commit is contained in:
parent
c338f0b5c6
commit
cece262209
@ -44,6 +44,7 @@ static char *get_reset_cause(void)
|
|||||||
|
|
||||||
switch (cause) {
|
switch (cause) {
|
||||||
case 0x00001:
|
case 0x00001:
|
||||||
|
case 0x00011:
|
||||||
return "POR";
|
return "POR";
|
||||||
case 0x00004:
|
case 0x00004:
|
||||||
return "CSU";
|
return "CSU";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user