Commit b25b7ad16e1b2afa531612ce0b48d84d801c38d8
Committed by
Hans de Goede
1 parent
81a8aa3a39
Exists in
v2017.01-smarct4x
and in
29 other branches
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>
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
include/axp818.h
... | ... | @@ -55,7 +55,11 @@ |
55 | 55 | |
56 | 56 | /* For axp_gpio.c */ |
57 | 57 | #define AXP_POWER_STATUS 0x00 |
58 | -#define AXP_POWER_STATUS_VBUS_PRESENT (1 << 5) | |
58 | +#define AXP_POWER_STATUS_VBUS_PRESENT (1 << 5) | |
59 | +#define AXP_VBUS_IPSOUT 0x30 | |
60 | +#define AXP_VBUS_IPSOUT_DRIVEBUS (1 << 2) | |
61 | +#define AXP_MISC_CTRL 0x8f | |
62 | +#define AXP_MISC_CTRL_N_VBUSEN_FUNC (1 << 4) | |
59 | 63 | #define AXP_GPIO0_CTRL 0x90 |
60 | 64 | #define AXP_GPIO1_CTRL 0x92 |
61 | 65 | #define AXP_GPIO_CTRL_OUTPUT_LOW 0x00 /* Drive pin low */ |