]> git.sur5r.net Git - u-boot/commit
sunxi: axp: Generalize register macros for VBUS drive GPIO
authorChen-Yu Tsai <wens@csie.org>
Tue, 29 Mar 2016 16:26:56 +0000 (00:26 +0800)
committerHans de Goede <hdegoede@redhat.com>
Thu, 31 Mar 2016 15:03:52 +0000 (17:03 +0200)
commit81a8aa3a3969b3ec50ee27addcc4eaa0cb37aa94
tree0c42e86ac4574a0422a72ad47095646c26c574cc
parent96fccb175fc3241768ce83fee47158ab506e9d8b
sunxi: axp: Generalize register macros for VBUS drive GPIO

VBUS drive is supported on AXP221 and later PMICs. Rework the macros
so we can support this on later PMICs without too much work.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/gpio/axp_gpio.c
include/axp221.h