diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-03-22 18:07:12 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-04-15 16:17:17 +0200 |
commit | ebd468b2d26660ff7811e37cc64fa2369d4b5fff (patch) | |
tree | cc53c766c49aa654db0197fd8698f4672bd5b6cb /arch/arm/include/asm/arch-sunxi | |
parent | 1a59ecff804ffd96ab11001f722b8311296e6e5b (diff) | |
download | u-boot-imx-ebd468b2d26660ff7811e37cc64fa2369d4b5fff.zip u-boot-imx-ebd468b2d26660ff7811e37cc64fa2369d4b5fff.tar.gz u-boot-imx-ebd468b2d26660ff7811e37cc64fa2369d4b5fff.tar.bz2 |
sunxi: common VBUS detection logic in usbc
VBUS detection could be needed not only by the musb code (to prevent host mode),
but also by e.g. gadget drivers to start only when a cable is connected.
In addition, this allows more flexibility in vbus detection, as it could easily
be extended to other USBC indexes. Eventually, this would help making musb
support independent from a hardcoded USB controller index (0).
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi')
-rw-r--r-- | arch/arm/include/asm/arch-sunxi/usbc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/usbc.h b/arch/arm/include/asm/arch-sunxi/usbc.h index 1330733..ab0f272 100644 --- a/arch/arm/include/asm/arch-sunxi/usbc.h +++ b/arch/arm/include/asm/arch-sunxi/usbc.h @@ -20,4 +20,5 @@ void sunxi_usbc_enable(int index); void sunxi_usbc_disable(int index); void sunxi_usbc_vbus_enable(int index); void sunxi_usbc_vbus_disable(int index); +int sunxi_usbc_vbus_detect(int index); void sunxi_usbc_enable_squelch_detect(int index, int enable); |