Home | History | Annotate | Line # | Download | only in pinctrl
      1 /*	$NetBSD: apple.h,v 1.1.1.1 2021/11/07 16:49:57 jmcneill Exp $	*/
      2 
      3 /* SPDX-License-Identifier: GPL-2.0+ OR MIT */
      4 /*
      5  * This header provides constants for Apple pinctrl bindings.
      6  */
      7 
      8 #ifndef _DT_BINDINGS_PINCTRL_APPLE_H
      9 #define _DT_BINDINGS_PINCTRL_APPLE_H
     10 
     11 #define APPLE_PINMUX(pin, func) ((pin) | ((func) << 16))
     12 #define APPLE_PIN(pinmux) ((pinmux) & 0xffff)
     13 #define APPLE_FUNC(pinmux) ((pinmux) >> 16)
     14 
     15 #endif /* _DT_BINDINGS_PINCTRL_APPLE_H */
     16