]> git.sur5r.net Git - u-boot/commit
mx6: Disable Power Down Bit of watchdog
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 7 Feb 2013 06:45:23 +0000 (06:45 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Feb 2013 12:54:34 +0000 (13:54 +0100)
commit76c91e668a54a45fa06086d4044fcae0b6ce225a
treed67aadea25803bfb73fad2aded5ad09e30302715
parent7c92c540754a0c3756d467a9b0695f2a40d1fe86
mx6: Disable Power Down Bit of watchdog

On a mx6qsabresd revision C board with rev1.2 mx6q, the system gets resetted
and it is not able to reach the Linux prompt.

Comparing the watchdog behaviour on a revB versus revC board:

- On a mx6qsabresd revB:

U-Boot > reset
resetting ...

U-Boot 2013.01-10524-g432a3aa-dirty (Feb 07 2013 - 13:34:46)

CPU:   Freescale i.MX6Q rev1.1 at 792 MHz
Reset cause: WDOG
...

- On a mx6qsabresd revC:

U-Boot > reset
resetting ...

U-Boot 2013.01-10524-g432a3aa-dirty (Feb 07 2013 - 13:34:46)

CPU:   Freescale i.MX6Q rev1.1 at 792 MHz
Reset cause: POR

So due to revC POR/watchdog circuitry whenever a watchdog occurs, it causes a POR.

Clearing the PDE - Power Down Enable bit of WMCR registers fixes the problem and
is also safe for all mx6 boards.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/mx6/soc.c
arch/arm/include/asm/arch-mx6/imx-regs.h