162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * This header provides constants for Apple pinctrl bindings. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_PINCTRL_APPLE_H 762306a36Sopenharmony_ci#define _DT_BINDINGS_PINCTRL_APPLE_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define APPLE_PINMUX(pin, func) ((pin) | ((func) << 16)) 1062306a36Sopenharmony_ci#define APPLE_PIN(pinmux) ((pinmux) & 0xffff) 1162306a36Sopenharmony_ci#define APPLE_FUNC(pinmux) ((pinmux) >> 16) 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#endif /* _DT_BINDINGS_PINCTRL_APPLE_H */ 14