summaryrefslogtreecommitdiff
path: root/board/freescale/mx53_smd
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2011-07-21 18:08:07 +0800
committerLily Zhang <r58066@freescale.com>2011-07-22 09:15:05 +0800
commit6667da86ca1582222416defdcbf8e6d41bc03d28 (patch)
treeb2e3721348cf402b01edd83bb81fbd18c7f3d4e1 /board/freescale/mx53_smd
parent8e05935d06ba2393ae3d2c5d77ca97e562310532 (diff)
downloadu-boot-imx-6667da86ca1582222416defdcbf8e6d41bc03d28.zip
u-boot-imx-6667da86ca1582222416defdcbf8e6d41bc03d28.tar.gz
u-boot-imx-6667da86ca1582222416defdcbf8e6d41bc03d28.tar.bz2
ENGR00151310 mx53 smd: force warm reset as cold reset
This patch is used to support watchdog timeout in SMD RevA, RevB board. 1. Revert "ENGR00143469 mx53 smd: pull down GPIO_9 to reset the board". 2. Force warm reset as cold reset. Signed-off-by: Lily Zhang <r58066@freescale.com>
Diffstat (limited to 'board/freescale/mx53_smd')
-rw-r--r--board/freescale/mx53_smd/mx53_smd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/freescale/mx53_smd/mx53_smd.c b/board/freescale/mx53_smd/mx53_smd.c
index aff0364..b698fd3 100644
--- a/board/freescale/mx53_smd/mx53_smd.c
+++ b/board/freescale/mx53_smd/mx53_smd.c
@@ -799,6 +799,7 @@ void setup_splash_image(void)
int board_init(void)
{
+ unsigned int val;
#ifdef CONFIG_MFG
/* MFG firmware need reset usb to avoid host crash firstly */
#define USBCMD 0x140
@@ -806,6 +807,14 @@ int board_init(void)
val &= ~0x1; /*RS bit*/
writel(val, OTG_BASE_ADDR + USBCMD);
#endif
+
+ /* Workaround: To make watchdog timeout work in mx53
+ * SMD, force warm reset as cold reset
+ */
+ val = readl(SRC_BASE_ADDR);
+ val &= 0xFFFFFFFE;
+ writel(val, SRC_BASE_ADDR);
+
setup_boot_device();
setup_soc_rev();