From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Grandegger Date: Fri, 21 Oct 2011 15:28:17 +0200 Subject: [U-Boot] Adding USBH2 support for mx31pdk In-Reply-To: References: Message-ID: <4EA17371.10807@grandegger.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.