I want to use usb disk in uboot but can not find any usb host enabled code? No support for usb host currently?
Solved! Go to Solution.
Yes, USB host is supported in the mainline version of U-boot (2013.07 is the latest currently).
Yes, USB host is supported in the mainline version of U-boot (2013.07 is the latest currently).
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.
Would you mind sharing your patch file for this?
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!
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?
Yes, it only support first one usb port. As I remembered ,uboot does not support multiple usb host ports.
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.
Thank you! I will trying to port to current android release.