]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: musb: Support checking VBUS using AXP221 PMIC
authorChen-Yu Tsai <wens@csie.org>
Mon, 9 Mar 2015 07:44:16 +0000 (15:44 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:28:32 +0000 (14:28 +0200)
commita512544eb100221ab6088ec58e8141598e6f0d6b
tree9a6719470351dd1728e322cb8943e8beab411e93
parent789727332e98fef8f3bb20212bd09c2135aa21b3
sunxi: musb: Support checking VBUS using AXP221 PMIC

This enables the musb glue layer to use the AXP221's VBUS detection
function to check for VBUS. This fixes otg support on the A23 q8h
tablets.

Note that u-boot never calls musb_shutdown(), so once VBUS is enabled,
it is never disabled until the system is powered off, or the OS does
so. This can be used to our advantage to keep VBUS powered into the
OS, where support for AXP221 is not available yet.

Fixes: 52defe8f6570 ("sunxi: musb: Check Vbus-det before enabling otg port power")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/usb/musb-new/sunxi.c