]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:53:55 +0000 (13:53 +0200)
commitf59c5a53d48a07a7aab4f636a5628c83937d9947
tree10f86128788d00a98ac2808b8891492bcbf4b2b8
parent76ee76ecf09e232dfc76b25cdfef6672cad07c4e
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