summaryrefslogtreecommitdiff
path: root/board/freescale/mx25_3stack
diff options
context:
space:
mode:
authorYan Wang <r65094@freescale.com>2010-04-07 15:35:17 +0800
committerYan Wang <r65094@freescale.com>2010-04-07 15:35:58 +0800
commit025e700031adf10bafe7e8713385a18b9080111c (patch)
treed4297ac1108c08935efec8fba175461ac1368bd6 /board/freescale/mx25_3stack
parentb40dc845fc1c09d79471482e74d6158d23cf9a23 (diff)
downloadu-boot-imx-025e700031adf10bafe7e8713385a18b9080111c.zip
u-boot-imx-025e700031adf10bafe7e8713385a18b9080111c.tar.gz
u-boot-imx-025e700031adf10bafe7e8713385a18b9080111c.tar.bz2
ENGR00122030 Mfg Firmware support fot imx25
Add mfg firmware support for imx25 Signed-off-by:Yan Wang<r65094@freescale.com>
Diffstat (limited to 'board/freescale/mx25_3stack')
-rw-r--r--board/freescale/mx25_3stack/mx25_3stack.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/freescale/mx25_3stack/mx25_3stack.c b/board/freescale/mx25_3stack/mx25_3stack.c
index e5624c1..66e4779 100644
--- a/board/freescale/mx25_3stack/mx25_3stack.c
+++ b/board/freescale/mx25_3stack/mx25_3stack.c
@@ -200,6 +200,15 @@ void spi_io_init(struct imx_spi_dev_t *dev)
int board_init(void)
{
+
+#ifdef CONFIG_MFG
+/* MFG firmware need reset usb to avoid host crash firstly */
+#define USBCMD 0x140
+ int val = readl(USB_BASE + USBCMD);
+ val &= ~0x1; /*RS bit*/
+ writel(val, USB_BASE + USBCMD);
+#endif
+
setup_soc_rev();
/* setup pins for UART1 */