On my Sabre-SD (with imx6q) USB OTG is working well, on a customized board with imx6dl usb otg is not working (all other things including usbh1 are working well)!
My configs:
#define MX6DL_ICORE_USB_OTG_PWR IMX_GPIO_NR(4, 15)
MX6DL_PAD_KEY_ROW4__GPIO_4_15,
MX6DL_PAD_KEY_COL4__USBOH3_USBOTG_OC,
MX6DL_PAD_GPIO_1__USBOTG_ID,
//USB OTG-----------------------------------------------------------------------
static void imx6q_icore_usbotg_vbus(bool on)
{
if(on)gpio_set_value(MX6DL_ICORE_USB_OTG_PWR,1);
else gpio_set_value(MX6DL_ICORE_USB_OTG_PWR,0);
}
static void __init imx6q_icore_init_usb(void)
{
int ret=0;
imx_otg_base=MX6_IO_ADDRESS(MX6Q_USB_OTG_BASE_ADDR);
ret=gpio_request(MX6DL_ICORE_USB_OTG_PWR,"usb-pwr");
if(ret){
pr_err("failed to get GPIO MX6DL_ICORE_USB_OTG_PWR: %d\n",ret);
return;
}
gpio_direction_output(MX6DL_ICORE_USB_OTG_PWR,0);
//mxc_iomux_set_gpr_register(1,13,1,1);
mx6_set_otghost_vbus_func(imx6q_icore_usbotg_vbus);
}
imx6q_icore_init_usb();
Has anybody an idea?
Thanks in advance, tom