Does iMX6 uboot support usb host function?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Does iMX6 uboot support usb host function?

ソリューションへジャンプ
5,836件の閲覧回数
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 解決策
2,843件の閲覧回数
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 返答(返信)
2,844件の閲覧回数
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 件の賞賛
返信
2,843件の閲覧回数
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 件の賞賛
返信
2,843件の閲覧回数
varsmolta
Contributor V

Would you mind sharing your patch file for this?

0 件の賞賛
返信
2,843件の閲覧回数
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 件の賞賛
返信
2,843件の閲覧回数
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 件の賞賛
返信
2,843件の閲覧回数
raymondwang
Senior Contributor I

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

0 件の賞賛
返信
2,843件の閲覧回数
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 件の賞賛
返信
2,843件の閲覧回数
raymondwang
Senior Contributor I

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

0 件の賞賛
返信