X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fusb%2Fulpi.h;h=99166c44a08c053386028113952e81acbf3ad24d;hb=422cb08acb1bc9a05ffa68ba68b4e196dad1af5b;hp=4a23fd2af23cf0439b92f0c7f00e5d609c7ac676;hpb=e390e8709149664ff96cf19384264c84573f3082;p=oweals%2Fu-boot.git diff --git a/include/usb/ulpi.h b/include/usb/ulpi.h index 4a23fd2af2..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_enable_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.