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