]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - include/dt-bindings/pinctrl/r7s72100-pinctrl.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / include / dt-bindings / pinctrl / r7s72100-pinctrl.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
62c2f988
JM
2/*
3 * Defines macros and constants for Renesas RZ/A1 pin controller pin
4 * muxing functions.
5 */
6#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
7#define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
8
9#define RZA1_PINS_PER_PORT 16
10
11/*
12 * Create the pin index from its bank and position numbers and store in
13 * the upper 16 bits the alternate function identifier
14 */
15#define RZA1_PINMUX(b, p, f) ((b) * RZA1_PINS_PER_PORT + (p) | (f << 16))
16
17#endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */