]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: bcm2835: add pull defines to dt bindings
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 19 Sep 2016 08:43:17 +0000 (10:43 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 17 Oct 2016 16:55:17 +0000 (09:55 -0700)
Also delete (unused) private enum from driver.
The pull defines can be used instead if needed.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
drivers/pinctrl/bcm/pinctrl-bcm2835.c
include/dt-bindings/pinctrl/bcm2835.h

index fa77165fab2c1348163979da507df17e7168c49b..4cf612bcfdfa31d006c14972c895d20928226296 100644 (file)
@@ -76,12 +76,6 @@ enum bcm2835_pinconf_param {
        BCM2835_PINCONF_PARAM_PULL,
 };
 
-enum bcm2835_pinconf_pull {
-       BCM2835_PINCONFIG_PULL_NONE,
-       BCM2835_PINCONFIG_PULL_DOWN,
-       BCM2835_PINCONFIG_PULL_UP,
-};
-
 #define BCM2835_PINCONF_PACK(_param_, _arg_) ((_param_) << 16 | (_arg_))
 #define BCM2835_PINCONF_UNPACK_PARAM(_conf_) ((_conf_) >> 16)
 #define BCM2835_PINCONF_UNPACK_ARG(_conf_) ((_conf_) & 0xffff)
index 6f0bc37af39ca64a51258a0673b6c981fec7d110..e4e4fdf5d38fbef0dfdcff1ca2e288507f252677 100644 (file)
@@ -24,4 +24,9 @@
 #define BCM2835_FSEL_ALT2      6
 #define BCM2835_FSEL_ALT3      7
 
+/* brcm,pull property */
+#define BCM2835_PUD_OFF                0
+#define BCM2835_PUD_DOWN       1
+#define BCM2835_PUD_UP         2
+
 #endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */