summaryrefslogtreecommitdiff
path: root/include/power/as3722.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/power/as3722.h')
-rw-r--r--include/power/as3722.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/power/as3722.h b/include/power/as3722.h
index 14afa0c81a..713e79840f 100644
--- a/include/power/as3722.h
+++ b/include/power/as3722.h
@@ -20,6 +20,11 @@
#define AS3722_ASIC_ID1 0x90
#define AS3722_ASIC_ID2 0x91
+#define AS3722_GPIO_CONTROL(n) (0x08 + (n))
+#define AS3722_GPIO_CONTROL_MODE_OUTPUT_VDDH (1 << 0)
+#define AS3722_GPIO_CONTROL_MODE_OUTPUT_VDDL (7 << 0)
+#define AS3722_GPIO_CONTROL_INVERT (1 << 7)
+
struct udevice;
int as3722_init(struct udevice **devp);