]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/usb/ulpi.h
karo: tx28: explicitly configure pad config (voltage, pull, drive) for all pads
[karo-tx-uboot.git] / include / usb / ulpi.h
index 9a75c24bdd146d0364fb949a98afd29872175b11..99166c44a08c053386028113952e81acbf3ad24d 100644 (file)
@@ -61,8 +61,17 @@ int ulpi_select_transceiver(struct ulpi_viewport *ulpi_vp, unsigned speed);
  *
  * returns 0 on success, ULPI_ERROR on failure.
  */
-int ulpi_set_vbus(struct ulpi_viewport *ulpi_vp,
-                       int on, int ext_power, int ext_ind);
+int ulpi_set_vbus(struct ulpi_viewport *ulpi_vp, int on, int ext_power);
+
+/*
+ * Configure VBUS indicator
+ * @external           - external VBUS over-current indicator is used
+ * @passthru           - disables ANDing of internal VBUS comparator
+ *                    with external VBUS input
+ * @complement         - inverts the external VBUS input
+ */
+int ulpi_set_vbus_indicator(struct ulpi_viewport *ulpi_vp, int external,
+                       int passthru, int complement);
 
 /*
  * Enable/disable pull-down resistors on D+ and D- USB lines.