[U-Boot] No power on USB host of IMX25 PDK
Fabio Estevam
festevam at gmail.com
Fri Nov 4 12:31:09 CET 2011
Hi Hugo,
2011/11/4 Hugo Holgersson <hugoh at student.chalmers.se>:
> 2) Do I need to set the mux's SW_PAD_CTL for the D9 pins?
> 3) Are there any pins I have forgot to mux?
I looked at the IOMUX configuration for USBH2 on the Freescale Linux
BSP and the code is below:
int gpio_usbh2_active(void)
{
if (mxc_request_iomux(MX25_PIN_D9, MUX_CONFIG_ALT6) || /* PWR */
mxc_request_iomux(MX25_PIN_D8, MUX_CONFIG_ALT6) || /* OC */
mxc_request_iomux(MX25_PIN_A21, MUX_CONFIG_ALT5)) { /* BT_USB_CS */
return -EINVAL;
}
/*
* This pin controls the mux that switches between
* the J18 connector and the on-board bluetooth module.
* dir: 0 = out
* pin: 0 = J18, 1 = BT
*/
gpio_request(IOMUX_TO_GPIO(MX25_PIN_A21), "a21");
gpio_direction_output(IOMUX_TO_GPIO(MX25_PIN_A21), 0);
gpio_set_value(IOMUX_TO_GPIO(MX25_PIN_A21), 0);
return 0;
}
,so please make sure you control MX25_PIN_A21 correctly for USB operation.
Regards,
Fabio Estevam
More information about the U-Boot
mailing list