gpio_set_value(SABRESD_USB_OTG_PWR, 0);
}
+static void imx6q_sabresd_host1_vbus(bool on)
+{
+ if (on)
+ gpio_set_value(SABRESD_USB_H1_PWR, 1);
+ else
+ gpio_set_value(SABRESD_USB_H1_PWR, 0);
+}
+
static void __init imx6q_sabresd_init_usb(void)
{
int ret = 0;
ret);
return;
}
- gpio_direction_output(SABRESD_USB_H1_PWR, 1);
+ gpio_direction_output(SABRESD_USB_H1_PWR, 0);
if (board_is_mx6_reva())
mxc_iomux_set_gpr_register(1, 13, 1, 1);
else
mxc_iomux_set_gpr_register(1, 13, 1, 0);
mx6_set_otghost_vbus_func(imx6q_sabresd_usbotg_vbus);
+ mx6_set_host1_vbus_func(imx6q_sabresd_host1_vbus);
}
/*
- * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
imx_mxc_ehci_data_entry_single(MX6SL, 1, HS1)};
mx6_get_host1_vbus_func(&mx6_set_usb_host1_vbus);
- if (mx6_set_usb_host1_vbus)
- mx6_set_usb_host1_vbus(true);
+ usbh1_config.platform_driver_vbus = mx6_set_usb_host1_vbus;
/* Some phy and power's special controls for host1
* 1. The external charger detector needs to be disabled
| BM_ANADIG_USB2_PLL_480_CTRL_POWER \
| BM_ANADIG_USB2_PLL_480_CTRL_EN_USB_CLKS, \
anatop_base_addr + HW_ANADIG_USB2_PLL_480_CTRL_CLR);
- if (mx6_set_usb_host1_vbus)
- mx6_set_usb_host1_vbus(false);
return ;
}