summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2018-04-28 18:31:32 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-05-16 14:35:24 +0200
commit6315d231efdc6ff1f3344e2d3c66dabcf6e7c27f (patch)
treec66da7ff64a7fbc99e8e6f247fd1739b12e99050 /drivers/gpio
parent0950c19acaaa8f899f715954e2918ff45e5b2fc8 (diff)
gpio: pca953x: add more register definitions for pcal953x
PCAL chips ("L" seems to stand for "latched") have additional registers starting at address 0x40 to control the latches, interrupt mask, pull-up and pull down etc. Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-pca953x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index b68a8a240e4c..ed58c000c72f 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -41,9 +41,13 @@
#define PCA957X_MSK 0x06
#define PCA957X_INTS 0x07
+#define PCAL953X_OUT_STRENGTH 0x20
#define PCAL953X_IN_LATCH 0x22
+#define PCAL953X_PULL_EN 0x23
+#define PCAL953X_PULL_SEL 0x24
#define PCAL953X_INT_MASK 0x25
#define PCAL953X_INT_STAT 0x26
+#define PCAL953X_OUT_CONF 0x27
#define PCA_GPIO_MASK 0x00FF
#define PCA_INT 0x0100