apple.h 382 B

12345678910111213
  1. /* SPDX-License-Identifier: GPL-2.0+ OR MIT */
  2. /*
  3. * This header provides constants for Apple pinctrl bindings.
  4. */
  5. #ifndef _DT_BINDINGS_PINCTRL_APPLE_H
  6. #define _DT_BINDINGS_PINCTRL_APPLE_H
  7. #define APPLE_PINMUX(pin, func) ((pin) | ((func) << 16))
  8. #define APPLE_PIN(pinmux) ((pinmux) & 0xffff)
  9. #define APPLE_FUNC(pinmux) ((pinmux) >> 16)
  10. #endif /* _DT_BINDINGS_PINCTRL_APPLE_H */