diff options
author | Florian Vaussard <florian.vaussard@epfl.ch> | 2013-06-03 10:12:24 -0400 |
---|---|---|
committer | Benoit Cousson <benoit.cousson@linaro.org> | 2013-06-18 19:53:42 -0400 |
commit | 3f2d1658a759692af19a0867100bd777a3d93184 (patch) | |
tree | 7f73c83379ef4155d6939b645fc0af1d3a2e43bf /include/dt-bindings/pinctrl | |
parent | e94233c287890a4236cfccc1be7d663435dd1aff (diff) |
ARM: dts: AM33XX: Specific pinctrl header
The pinctrl IP inside the AM33XX family differs slightly from
what is found on OMAP2+. Define a specific header to take account
of the differences.
Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Tested-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
Diffstat (limited to 'include/dt-bindings/pinctrl')
-rw-r--r-- | include/dt-bindings/pinctrl/am33xx.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/dt-bindings/pinctrl/am33xx.h b/include/dt-bindings/pinctrl/am33xx.h new file mode 100644 index 000000000000..a3fddd4f6ecf --- /dev/null +++ b/include/dt-bindings/pinctrl/am33xx.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * This header provides constants specific to AM33XX pinctrl bindings. | ||
3 | */ | ||
4 | |||
5 | #include <include/dt-bindings/pinctrl/omap.h> | ||
6 | |||
7 | /* am33xx specific mux bit defines */ | ||
8 | #undef PULL_ENA | ||
9 | #undef INPUT_EN | ||
10 | |||
11 | #define PULL_DISABLE (1 << 3) | ||
12 | #define INPUT_EN (1 << 5) | ||
13 | #define SLEWCTRL_FAST (1 << 6) | ||
14 | |||
15 | /* update macro depending on INPUT_EN and PULL_ENA */ | ||
16 | #undef PIN_OUTPUT | ||
17 | #undef PIN_OUTPUT_PULLUP | ||
18 | #undef PIN_OUTPUT_PULLDOWN | ||
19 | #undef PIN_INPUT | ||
20 | #undef PIN_INPUT_PULLUP | ||
21 | #undef PIN_INPUT_PULLDOWN | ||
22 | |||
23 | #define PIN_OUTPUT (PULL_DISABLE) | ||
24 | #define PIN_OUTPUT_PULLUP (PULL_UP) | ||
25 | #define PIN_OUTPUT_PULLDOWN 0 | ||
26 | #define PIN_INPUT (INPUT_EN | PULL_DISABLE) | ||
27 | #define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP) | ||
28 | #define PIN_INPUT_PULLDOWN (INPUT_EN) | ||
29 | |||
30 | /* undef non-existing modes */ | ||
31 | #undef PIN_OFF_NONE | ||
32 | #undef PIN_OFF_OUTPUT_HIGH | ||
33 | #undef PIN_OFF_OUTPUT_LOW | ||
34 | #undef PIN_OFF_INPUT_PULLUP | ||
35 | #undef PIN_OFF_INPUT_PULLDOWN | ||
36 | #undef PIN_OFF_WAKEUPENABLE | ||
37 | |||