162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Defines macros and constants for Renesas RZ/A1 pin controller pin 462306a36Sopenharmony_ci * muxing functions. 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H 762306a36Sopenharmony_ci#define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define RZA1_PINS_PER_PORT 16 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci/* 1262306a36Sopenharmony_ci * Create the pin index from its bank and position numbers and store in 1362306a36Sopenharmony_ci * the upper 16 bits the alternate function identifier 1462306a36Sopenharmony_ci */ 1562306a36Sopenharmony_ci#define RZA1_PINMUX(b, p, f) ((b) * RZA1_PINS_PER_PORT + (p) | (f << 16)) 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */ 18