aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass2017-07-25 08:30:11 -0600
committerSimon Glass2017-07-28 12:02:47 -0600
commitc2012cb47cc0b02569c011a0e588b22e07856076 (patch)
tree2d24cfed46dc94fd2f0e18300166a7b1aa39e6d4 /include
parentdeea211aec45e95cdc4fed006526591fe70abe22 (diff)
power: Add a GPIO driver for the as3722 PMIC
This pmic includes GPIOs which should have their own driver. Add a driver to support these. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Lukasz Majewski <lukma@denx.de> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1 Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include')
-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 14afa0c81a8..713e79840f9 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);