]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: axp221: Add support for controlling the drivebus pin
authorHans de Goede <hdegoede@redhat.com>
Sun, 11 Jan 2015 18:58:03 +0000 (19:58 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:40 +0000 (14:56 +0100)
commit2abac6213d9d05c34fba7dcaa2934668774008a7
tree4232558f135a6f0fd620c11f6d4650de087ceb09
parent3c781190d11ca44752562867d76ccfb8d0a45ac3
sunxi: axp221: Add support for controlling the drivebus pin

The axp221 / axp223's N_VBUSEN pin can be configured as an output rather
then an input, add axp_drivebus_enable() and _disable() functions to set
the pin in output mode and control it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/power/axp221.c
include/axp221.h