Does iMX6 uboot support usb host function?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does iMX6 uboot support usb host function?

Jump to solution
4,295 Views
raymondwang
Senior Contributor I

I want to use usb disk in uboot but can not find any usb host enabled code? No support for usb host currently?

Labels (2)
Tags (1)
0 Kudos
1 Solution
1,302 Views
fabio_estevam
NXP Employee
NXP Employee

Yes, USB host is supported in the mainline version of U-boot (2013.07 is the latest currently).

View solution in original post

0 Kudos
8 Replies
1,303 Views
fabio_estevam
NXP Employee
NXP Employee

Yes, USB host is supported in the mainline version of U-boot (2013.07 is the latest currently).

0 Kudos
1,302 Views
raymondwang
Senior Contributor I

Yes,I port mx6 ehci code to current android uboot version. Seems big difference from mainline release.

Anyway,through some effort. Now usb host does work.

0 Kudos
1,302 Views
varsmolta
Contributor V

Would you mind sharing your patch file for this?

0 Kudos
1,302 Views
raymondwang
Senior Contributor I

I'd like to share my patch file with you .But you have to merge it manually since there are some files you missed in this patch.

Only these files in patch you should pay attention:

board/freescale/mx6q_sparkauto/mx6q_sparkauto.c

cpu/arm_cortexa8/mx6/generic.c

drivers/usb/host/Makefile

drivers/usb/host/ehci-mx6.c

drivers/usb/host/ehci.h

include/asm-arm/arch-mx6/crm_regs.h (renamed from cpu/arm_cortexa8/mx6/crm_regs.h)

include/asm-arm/arch-mx6/imx-regs.h

include/asm-arm/io.h

include/configs/mx6q_qpad_android.h

include/configs/mx6q_sparkauto_android.h

include/usb/ehci-fsl.h

  Good luck to you!

0 Kudos
1,302 Views
rajendrabaniyav
Contributor I

Thanks for patch. I have ported this to our platform and works fine for one of the two USB port. But doesn't work for other port, is the patch is for only one port or it is independent of number of USB host ports?

0 Kudos
1,302 Views
raymondwang
Senior Contributor I

Yes, it only support first one usb port. As I remembered ,uboot does not support multiple usb host ports.

0 Kudos
1,302 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

Freescale released UBoot had no USB host support, but the original UBoot has the USB host driver for iMX chips. I had found the mxc USB host driver in u-boot-2012.07 version.

http://www.denx.de/wiki/U-Boot

0 Kudos
1,302 Views
raymondwang
Senior Contributor I

Thank you! I will trying to port to current android release.

0 Kudos