diff options
author | Peter Chen <peter.chen@freescale.com> | 2010-10-26 09:18:30 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2010-10-26 09:18:30 +0800 |
commit | 6a8d78074cefec80c194697a72b0a17b0334aae9 (patch) | |
tree | c89c238c3c626e1e07f20cc80fb5d19ab99f107d | |
parent | 7f1800ec9f8ba60dddb473e92d4d4b2c76a5a237 (diff) | |
download | u-boot-imx-6a8d78074cefec80c194697a72b0a17b0334aae9.zip u-boot-imx-6a8d78074cefec80c194697a72b0a17b0334aae9.tar.gz u-boot-imx-6a8d78074cefec80c194697a72b0a17b0334aae9.tar.bz2 |
ENGR00132957 mfg-tool: should add stop usb operation for mx50 rdp
It should add stop usb operation for mx50 rdp,
otherwise, the usb enumeration at kernel will be very slow
Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rw-r--r-- | board/freescale/mx50_rdp/mx50_rdp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/mx50_rdp/mx50_rdp.c b/board/freescale/mx50_rdp/mx50_rdp.c index 1a736b4..809f124 100644 --- a/board/freescale/mx50_rdp/mx50_rdp.c +++ b/board/freescale/mx50_rdp/mx50_rdp.c @@ -599,6 +599,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(); |