r7s72100-pinctrl.h 522 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Defines macros and constants for Renesas RZ/A1 pin controller pin
  4. * muxing functions.
  5. */
  6. #ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
  7. #define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
  8. #define RZA1_PINS_PER_PORT 16
  9. /*
  10. * Create the pin index from its bank and position numbers and store in
  11. * the upper 16 bits the alternate function identifier
  12. */
  13. #define RZA1_PINMUX(b, p, f) \
  14. ((b) * RZA1_PINS_PER_PORT + (p) | ((f) << 16))
  15. #endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */