Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Defines macros and constants for Renesas RZ/A1 pin controller pin
0004  * muxing functions.
0005  */
0006 #ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
0007 #define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
0008 
0009 #define RZA1_PINS_PER_PORT  16
0010 
0011 /*
0012  * Create the pin index from its bank and position numbers and store in
0013  * the upper 16 bits the alternate function identifier
0014  */
0015 #define RZA1_PINMUX(b, p, f)    ((b) * RZA1_PINS_PER_PORT + (p) | (f << 16))
0016 
0017 #endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */