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