]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: common VBUS detection logic in usbc
authorPaul Kocialkowski <contact@paulk.fr>
Sun, 22 Mar 2015 17:07:12 +0000 (18:07 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:13 +0000 (21:47 +0200)
commitda89fb2c88098437350d9dc8c45d78e8486f98dd
treebe6999ecf7ee97dddc401f02017aa82300bed9c9
parentad753e93580e84d2d42a25adcf6ae905f47412bd
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>
arch/arm/cpu/armv7/sunxi/usbc.c
arch/arm/include/asm/arch-sunxi/usbc.h
board/sunxi/Kconfig
drivers/usb/musb-new/sunxi.c