]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/usb/host/ehci-mx6.c
usb: ehci-mx6: introduce config for high active power pin
[people/ms/u-boot.git] / drivers / usb / host / ehci-mx6.c
index 277f4616464955aa7a29aee6e9473e3236658d6a..8352c2bfc5c0bde0e1d4923326f4a44b3a1f1924 100644 (file)
@@ -216,7 +216,11 @@ static void usb_power_config(int index)
        clrbits_le32(phy_cfg2, USBNC_PHYCFG2_ACAENB);
 
        /* Set power polarity to high active */
+#ifdef CONFIG_MXC_USB_OTG_HACTIVE
        setbits_le32(ctrl, UCTRL_PWR_POL);
+#else
+       clrbits_le32(ctrl, UCTRL_PWR_POL);
+#endif
 }
 
 int usb_phy_mode(int port)