]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: musb: Check Vbus-det before enabling otg port power
authorHans de Goede <hdegoede@redhat.com>
Mon, 16 Feb 2015 21:13:43 +0000 (22:13 +0100)
committerHans de Goede <hdegoede@redhat.com>
Sat, 21 Feb 2015 15:53:33 +0000 (16:53 +0100)
commit52defe8f65700ad625c3ca63f723564210b2dc82
treefc1cab3185c9751d748bb4615d9a1898b0df8b0c
parent636317c9eea8df0657fe702e1eddeedff605b0c7
sunxi: musb: Check Vbus-det before enabling otg port power

Sending out 5V when there is a charger connected to the otg port is not a
good idea, so check for this and error out.

Note this commit currently breaks otg support on the q8h tablets, as we need
to do some magic with the pmic there to get vbus info, this is deliberate
(better safe then sorry), fixing this is on my TODO list.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
board/sunxi/Kconfig
configs/Ampe_A76_defconfig
configs/Chuwi_V7_CW0825_defconfig
configs/Hyundai_A7HD_defconfig
configs/Inet_86VS_defconfig
configs/TZX-Q8-713B7_defconfig
drivers/usb/musb-new/sunxi.c