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