summaryrefslogtreecommitdiff
path: root/drivers/fastboot/fastboot.c
diff options
context:
space:
mode:
authorSammy He <r62914@freescale.com>2010-11-26 22:35:55 +0800
committerSammy He <r62914@freescale.com>2010-11-26 22:38:31 +0800
commitf9c90ac3717b2907487f559f5227a7dab4675063 (patch)
treef2d9624d7a2e7a9893e7653f4a83db459d71713d /drivers/fastboot/fastboot.c
parent3a13770bd01f785ce7e587c398c47436b6fa703f (diff)
downloadu-boot-imx-f9c90ac3717b2907487f559f5227a7dab4675063.zip
u-boot-imx-f9c90ac3717b2907487f559f5227a7dab4675063.tar.gz
u-boot-imx-f9c90ac3717b2907487f559f5227a7dab4675063.tar.bz2
ENGR00134098-1 MX51: Update fastboot usb init seq
Update fastboot usb init seq, and use defined macro for coding. Signed-off-by: Sammy He <r62914@freescale.com>
Diffstat (limited to 'drivers/fastboot/fastboot.c')
-rw-r--r--drivers/fastboot/fastboot.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/fastboot/fastboot.c b/drivers/fastboot/fastboot.c
index 4008506..198c7c6 100644
--- a/drivers/fastboot/fastboot.c
+++ b/drivers/fastboot/fastboot.c
@@ -224,15 +224,14 @@ int fastboot_init(struct cmd_fastboot_interface *interface)
(unsigned char *)CONFIG_FASTBOOT_TRANSFER_BUF;
fastboot_interface->transfer_buffer_size =
CONFIG_FASTBOOT_TRANSFER_BUF_SIZE;
-
fastboot_init_strings();
+ /* Basic USB initialization */
+ udc_init();
+
fastboot_init_instances();
#ifdef CONFIG_FASTBOOT_STORAGE_EMMC
fastboot_init_mmc_ptable();
#endif
- /* Now, set up USB controller and infrastructure */
- /* Basic USB initialization */
- udc_init();
udc_startup_events(device_instance);
udc_connect(); /* Enable pullup for host detection */