1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 262c2f988SJacopo Mondi /* 362c2f988SJacopo Mondi * Defines macros and constants for Renesas RZ/A1 pin controller pin 462c2f988SJacopo Mondi * muxing functions. 562c2f988SJacopo Mondi */ 662c2f988SJacopo Mondi #ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H 762c2f988SJacopo Mondi #define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H 862c2f988SJacopo Mondi 962c2f988SJacopo Mondi #define RZA1_PINS_PER_PORT 16 1062c2f988SJacopo Mondi 1162c2f988SJacopo Mondi /* 1262c2f988SJacopo Mondi * Create the pin index from its bank and position numbers and store in 1362c2f988SJacopo Mondi * the upper 16 bits the alternate function identifier 1462c2f988SJacopo Mondi */ 1562c2f988SJacopo Mondi #define RZA1_PINMUX(b, p, f) ((b) * RZA1_PINS_PER_PORT + (p) | (f << 16)) 1662c2f988SJacopo Mondi 1762c2f988SJacopo Mondi #endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */ 18