1 /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
3 * Copyright (C) 2023 Sophgo Ltd.
5 * Author: Inochi Amaoto <inochiama@outlook.com>
8 #ifndef _DT_BINDINGS_PINCTRL_CV18XX_H
9 #define _DT_BINDINGS_PINCTRL_CV18XX_H
11 #define PIN_MUX_INVALD 0xff
13 #define PINMUX2(pin, mux, mux2) \
14 (((pin) & 0xffff) | (((mux) & 0xff) << 16) | (((mux2) & 0xff) << 24))
16 #define PINMUX(pin, mux) \
17 PINMUX2(pin, mux, PIN_MUX_INVALD)
19 #endif /* _DT_BINDINGS_PINCTRL_CV18XX_H */