forked from Minki/linux
710071479c
The Apple GPIO controller is a simple combined pin and GPIO conroller present on Apple ARM SoC platforms, including various iPhone and iPad devices and the "Apple Silicon" Macs. Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Link: https://lore.kernel.org/r/20210520171310.772-2-mark.kettenis@xs4all.nl Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
14 lines
382 B
C
14 lines
382 B
C
/* SPDX-License-Identifier: GPL-2.0+ OR MIT */
|
|
/*
|
|
* This header provides constants for Apple pinctrl bindings.
|
|
*/
|
|
|
|
#ifndef _DT_BINDINGS_PINCTRL_APPLE_H
|
|
#define _DT_BINDINGS_PINCTRL_APPLE_H
|
|
|
|
#define APPLE_PINMUX(pin, func) ((pin) | ((func) << 16))
|
|
#define APPLE_PIN(pinmux) ((pinmux) & 0xffff)
|
|
#define APPLE_FUNC(pinmux) ((pinmux) >> 16)
|
|
|
|
#endif /* _DT_BINDINGS_PINCTRL_APPLE_H */
|