summaryrefslogtreecommitdiffstats
path: root/include/dt-bindings/pinctrl
diff options
context:
space:
mode:
authorBoris BREZILLON <b.brezillon@overkiz.com>2016-10-28 15:54:10 +0800
committerLinus Walleij <linus.walleij@linaro.org>2016-10-31 09:16:46 +0100
commit96bb12deadac74ad1053d6bb704aaa33417b85a6 (patch)
treee35e6f3b5a8419de01e38db4668f9d431baa1cc7 /include/dt-bindings/pinctrl
parente11dee2e98f8abc99ad5336796576a827853ccfa (diff)
downloadlinux-96bb12deadac74ad1053d6bb704aaa33417b85a6.tar.bz2
pinctrl: at91: add support for OUTPUT config
Add support for pin output control through the pinctrl config: - support enabling/disabling output on a given pin - support output level setting (high or low) Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/dt-bindings/pinctrl')
-rw-r--r--include/dt-bindings/pinctrl/at91.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dt-bindings/pinctrl/at91.h b/include/dt-bindings/pinctrl/at91.h
index bbca3d038900..2732d6c0fb39 100644
--- a/include/dt-bindings/pinctrl/at91.h
+++ b/include/dt-bindings/pinctrl/at91.h
@@ -15,6 +15,8 @@
#define AT91_PINCTRL_DEGLITCH (1 << 2)
#define AT91_PINCTRL_PULL_DOWN (1 << 3)
#define AT91_PINCTRL_DIS_SCHMIT (1 << 4)
+#define AT91_PINCTRL_OUTPUT (1 << 7)
+#define AT91_PINCTRL_OUTPUT_VAL(x) ((x & 0x1) << 8)
#define AT91_PINCTRL_DEBOUNCE (1 << 16)
#define AT91_PINCTRL_DEBOUNCE_VAL(x) (x << 17)