Does iMX6 uboot support usb host function?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Does iMX6 uboot support usb host function?

跳至解决方案
4,300 次查看
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?

标签 (2)
标记 (1)
0 项奖励
1 解答
1,307 次查看
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 项奖励
8 回复数
1,308 次查看
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 项奖励
1,307 次查看
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 项奖励
1,307 次查看
varsmolta
Contributor V

Would you mind sharing your patch file for this?

0 项奖励
1,307 次查看
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 项奖励
1,307 次查看
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 项奖励
1,307 次查看
raymondwang
Senior Contributor I

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

0 项奖励
1,307 次查看
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 项奖励
1,307 次查看
raymondwang
Senior Contributor I

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

0 项奖励