[U-Boot] [PATCH RFC 12/17] sunxi: axp: Support VBUS drive GPIO on AXP818

Chen-Yu Tsai wens at csie.org
Tue Mar 29 18:26:57 CEST 2016


AXP818 supports VBUS drive function, even though the manual does not
mention it.

Signed-off-by: Chen-Yu Tsai <wens at csie.org>
---
 include/axp818.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/axp818.h b/include/axp818.h
index 003477f..5630eed 100644
--- a/include/axp818.h
+++ b/include/axp818.h
@@ -56,7 +56,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 */
-- 
2.7.0



More information about the U-Boot mailing list