diff options
author | Peter Chen <peter.chen@freescale.com> | 2010-07-27 15:01:10 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2010-07-27 16:19:54 +0800 |
commit | 1c93b155346d863cec674e92c82eb5e1a590779a (patch) | |
tree | 182a72093d4b2accccdc949d8e2e612dacfb65a7 /board/freescale/mx50_arm2 | |
parent | 7bcdea937a3d48ca39a57ba3ba1d3eed91ec5abf (diff) | |
download | u-boot-imx-1c93b155346d863cec674e92c82eb5e1a590779a.zip u-boot-imx-1c93b155346d863cec674e92c82eb5e1a590779a.tar.gz u-boot-imx-1c93b155346d863cec674e92c82eb5e1a590779a.tar.bz2 |
ENGR00125613 mfg-tool: Add mx50 mfg firmware support
Add mx50 mfg firmware support
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'board/freescale/mx50_arm2')
-rw-r--r-- | board/freescale/mx50_arm2/mx50_arm2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/mx50_arm2/mx50_arm2.c b/board/freescale/mx50_arm2/mx50_arm2.c index df5d33a..d698db0 100644 --- a/board/freescale/mx50_arm2/mx50_arm2.c +++ b/board/freescale/mx50_arm2/mx50_arm2.c @@ -606,6 +606,13 @@ void setup_voltage_cpu(void) int board_init(void) { +#ifdef CONFIG_MFG +/* MFG firmware need reset usb to avoid host crash firstly */ +#define USBCMD 0x140 + int val = readl(OTG_BASE_ADDR + USBCMD); + val &= ~0x1; /*RS bit*/ + writel(val, OTG_BASE_ADDR + USBCMD); +#endif /* boot device */ setup_boot_device(); |