diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2017-06-29 16:05:51 +0300 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2017-06-29 16:05:51 +0300 |
| commit | df81b9411acc1d5d55fc03a99c7d5337400fed1c (patch) | |
| tree | d4726104b00eec70b67deec1257128c5969a5b99 /include | |
| parent | b3060044e4951fea7cdbd25310f78c438bba71c9 (diff) | |
| parent | c03a133bba8662daecd7db09819fa369663d0ea7 (diff) | |
| download | linux-df81b9411acc1d5d55fc03a99c7d5337400fed1c.tar.xz | |
Merge tag 'sh-pfc-for-v4.13-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into devel
pinctrl: sh-pfc: Updates for v4.13 (take two)
- Add SCIF1 and SCIF2 pin groups for R-Car V2H,
- Add EtherAVB, DU parallel RGB output, and PWM pin groups for R-Car
H3 ES2.0,
- Add pin and gpio controller support for RZ/A1.
Diffstat (limited to 'include')
| -rw-r--r-- | include/dt-bindings/pinctrl/r7s72100-pinctrl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/dt-bindings/pinctrl/r7s72100-pinctrl.h b/include/dt-bindings/pinctrl/r7s72100-pinctrl.h new file mode 100644 index 000000000000..6b609fe10910 --- /dev/null +++ b/include/dt-bindings/pinctrl/r7s72100-pinctrl.h @@ -0,0 +1,16 @@ +/* + * Defines macros and constants for Renesas RZ/A1 pin controller pin + * muxing functions. + */ +#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H +#define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H + +#define RZA1_PINS_PER_PORT 16 + +/* + * Create the pin index from its bank and position numbers and store in + * the upper 16 bits the alternate function identifier + */ +#define RZA1_PINMUX(b, p, f) ((b) * RZA1_PINS_PER_PORT + (p) | (f << 16)) + +#endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */ |
