diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-03-30 00:26:57 +0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-03-31 17:03:54 +0200 |
commit | b25b7ad16e1b2afa531612ce0b48d84d801c38d8 (patch) | |
tree | 1df6ebcb105621ef544f87d088e5f6b5dfb0e491 /include/axp818.h | |
parent | 81a8aa3a3969b3ec50ee27addcc4eaa0cb37aa94 (diff) | |
download | u-boot-b25b7ad16e1b2afa531612ce0b48d84d801c38d8.zip u-boot-b25b7ad16e1b2afa531612ce0b48d84d801c38d8.tar.gz u-boot-b25b7ad16e1b2afa531612ce0b48d84d801c38d8.tar.bz2 |
sunxi: axp: Support VBUS drive GPIO on AXP818
AXP818 supports VBUS drive function, even though the manual does not
mention it.
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>
Diffstat (limited to 'include/axp818.h')
-rw-r--r-- | include/axp818.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/axp818.h b/include/axp818.h index c2f9847..b24c790 100644 --- a/include/axp818.h +++ b/include/axp818.h @@ -55,7 +55,11 @@ /* For axp_gpio.c */ #define AXP_POWER_STATUS 0x00 -#define AXP_POWER_STATUS_VBUS_PRESENT (1 << 5) +#define AXP_POWER_STATUS_VBUS_PRESENT (1 << 5) +#define AXP_VBUS_IPSOUT 0x30 +#define AXP_VBUS_IPSOUT_DRIVEBUS (1 << 2) +#define AXP_MISC_CTRL 0x8f +#define AXP_MISC_CTRL_N_VBUSEN_FUNC (1 << 4) #define AXP_GPIO0_CTRL 0x90 #define AXP_GPIO1_CTRL 0x92 #define AXP_GPIO_CTRL_OUTPUT_LOW 0x00 /* Drive pin low */ |