X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fusb%2Fulpi.h;h=99166c44a08c053386028113952e81acbf3ad24d;hb=422cb08acb1bc9a05ffa68ba68b4e196dad1af5b;hp=9a75c24bdd146d0364fb949a98afd29872175b11;hpb=495dbd72dd1172de866ba323263a5b62cf454972;p=oweals%2Fu-boot.git diff --git a/include/usb/ulpi.h b/include/usb/ulpi.h index 9a75c24bdd..99166c44a0 100644 --- a/include/usb/ulpi.h +++ b/include/usb/ulpi.h @@ -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.