mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
64aa494de6
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>
20 lines
475 B
C
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 */
|