This is zedboard requirement to get otg-host to work.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
dev_dbg(xotg->dev, "%s <--- %s\n", __func__, enabled ? "on" : "off");
+ /* Enable ulpi VBUS if required */
+ if (xotg->ulpi)
+ otg_set_vbus(xotg->ulpi->otg, enabled);
+
val = readl(xotg->base + CI_PORTSC1);
if (enabled)
the_transceiver = xotg;
+ /* Setup ulpi phy for OTG */
+ xotg->ulpi = pdata->ulpi;
+
xotg->otg.otg = kzalloc(sizeof(struct usb_otg), GFP_KERNEL);
if (!xotg->otg.otg) {
kfree(xotg);
struct xusbps_otg {
struct usb_phy otg;
+ struct usb_phy *ulpi;
struct otg_hsm hsm;