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