Commit 3f2d1658a759692af19a0867100bd777a3d93184
Committed by
Benoit Cousson
1 parent
e94233c287
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 1 changed file with 37 additions and 0 deletions Side-by-side Diff
include/dt-bindings/pinctrl/am33xx.h
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 |