diff options
author | Lucas Stach <dev@lynxeye.de> | 2012-10-01 00:44:34 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-15 11:54:01 -0700 |
commit | 141288b3a3249b79a168988c7d9e9ce817013d6f (patch) | |
tree | 72a911cca80f6c3f376e2d6ec0b2df9148663a4d /include/usb/ulpi.h | |
parent | 7a46b2c7f2be031906bb806193af18096b5dc135 (diff) | |
download | u-boot-imx-141288b3a3249b79a168988c7d9e9ce817013d6f.zip u-boot-imx-141288b3a3249b79a168988c7d9e9ce817013d6f.tar.gz u-boot-imx-141288b3a3249b79a168988c7d9e9ce817013d6f.tar.bz2 |
usb: ulpi: add indicator configuration function
Allows for easy configuration of the VBUS indicator related ULPI
config bits.
Also move the external indicator setup from ulpi_set_vbus() to
the new function.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'include/usb/ulpi.h')
-rw-r--r-- | include/usb/ulpi.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/usb/ulpi.h b/include/usb/ulpi.h index 9a75c24..99166c4 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. |