]> git.sur5r.net Git - u-boot/commit
sunxi: axp221: Add VBUS detection support
authorChen-Yu Tsai <wens@csie.org>
Mon, 9 Mar 2015 07:44:15 +0000 (15:44 +0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 10 Mar 2015 14:20:25 +0000 (15:20 +0100)
commit1986c4ca0b250c83434aae985e74e05f96ccb1a4
tree98f67cdd2a0cf2c70a8621899e8976c3ec2b86ca
parent5112703fddb0e851a11c6bc7722973522346e503
sunxi: axp221: Add VBUS detection support

Some of the AXP PMICs support VBUS detection, i.e. checking whether
VBUS power input is available and usable (supplied by an external
source). A few boards use this instead of a separate GPIO to detect
VBUS on USB OTG.

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/power/axp221.c
include/axp221.h