1 /* $NetBSD: r7s72100-pinctrl.h,v 1.1.1.1 2017/10/28 10:30:32 jmcneill Exp $ */ 2 3 /* 4 * Defines macros and constants for Renesas RZ/A1 pin controller pin 5 * muxing functions. 6 */ 7 #ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H 8 #define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H 9 10 #define RZA1_PINS_PER_PORT 16 11 12 /* 13 * Create the pin index from its bank and position numbers and store in 14 * the upper 16 bits the alternate function identifier 15 */ 16 #define RZA1_PINMUX(b, p, f) ((b) * RZA1_PINS_PER_PORT + (p) | (f << 16)) 17 18 #endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */ 19