[U-Boot] Adding USBH2 support for mx31pdk

Hi Stefano,
I am trying to add USBH2 support for MX31PDK and I am using qong code as reference.
When I add the USB related defines in mx31pdk.h (same as qong.h) :
/* USB */ #define CONFIG_CMD_USB #ifdef CONFIG_CMD_USB #define CONFIG_USB_EHCI /* Enable EHCI USB support */ #define CONFIG_USB_EHCI_MXC #define CONFIG_EHCI_HCD_INIT_AFTER_RESET #define CONFIG_MXC_USB_PORT 2 #define CONFIG_MXC_USB_PORTSC (MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT) #define CONFIG_MXC_USB_FLAGS MXC_EHCI_POWER_PINS_ENABLED #define CONFIG_EHCI_IS_TDI #define CONFIG_USB_STORAGE #define CONFIG_DOS_PARTITION #define CONFIG_SUPPORT_VFAT #define CONFIG_CMD_EXT2 #define CONFIG_CMD_FAT #endif /* CONFIG_CMD_USB */
, the mx31pdk board no longer boots.
I also took care of the USBH2 IOMUX, but even without the IOMUX the board does not boot.
Do you see anything obvious that I am missing here? Does qong board boot fine on your top of tree git?
Thanks,
Fabio Estevam

Hi Fabio,
On 10/21/2011 02:54 PM, Fabio Estevam wrote:
Hi Stefano,
I am trying to add USBH2 support for MX31PDK and I am using qong code as reference.
When I add the USB related defines in mx31pdk.h (same as qong.h) :
/* USB */ #define CONFIG_CMD_USB #ifdef CONFIG_CMD_USB #define CONFIG_USB_EHCI /* Enable EHCI USB support */ #define CONFIG_USB_EHCI_MXC #define CONFIG_EHCI_HCD_INIT_AFTER_RESET #define CONFIG_MXC_USB_PORT 2 #define CONFIG_MXC_USB_PORTSC (MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT) #define CONFIG_MXC_USB_FLAGS MXC_EHCI_POWER_PINS_ENABLED #define CONFIG_EHCI_IS_TDI #define CONFIG_USB_STORAGE #define CONFIG_DOS_PARTITION #define CONFIG_SUPPORT_VFAT #define CONFIG_CMD_EXT2 #define CONFIG_CMD_FAT #endif /* CONFIG_CMD_USB */
, the mx31pdk board no longer boots.
I also took care of the USBH2 IOMUX, but even without the IOMUX the board does not boot.
Is the IOMUX setup correct?
Do you see anything obvious that I am missing here? Does qong board boot fine on your top of tree git?
The USB pins do need to be setup properly? Search for "usb" in qong.c and have a look to
http://lxr.linux.no/#linux+v3.0.4/arch/arm/mach-imx/mach-mx31_3ds.c
Hope it helps.
Wolfgang.

Hi Wolfgang,
On Fri, Oct 21, 2011 at 11:28 AM, Wolfgang Grandegger wg@grandegger.com wrote: ...
The USB pins do need to be setup properly? Search for "usb" in qong.c and have a look to
http://lxr.linux.no/#linux+v3.0.4/arch/arm/mach-imx/mach-mx31_3ds.c
Yes, I used the same IOMUX scheme as done in the kernel.
It was me that added USBH2 host support for mx31pdk in the kernel, and now trying to do the same in U-boot.
The issue seems to be somewhere else and couldn't locate it so far.
Thanks for your suggestions.
Regards,
Fabio Estevam
participants (2)
-
Fabio Estevam
-
Wolfgang Grandegger