linux/include/dt-bindings/pinctrl/pinctrl-cv18xx.h
Inochi Amaoto 64aa494de6 dt-bindings: pinctrl: Add pinctrl for Sophgo CV1800 series SoC.
Add pinctrl support for Sophgo CV1800 series SoC.

Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/IA1PR20MB4953680DE7977CAD906DBDB4BBB32@IA1PR20MB4953.namprd20.prod.outlook.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2024-08-26 11:09:56 +02:00

20 lines
475 B
C

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