pinctrl-cv18xx.h revision 1.1.1.1
1/* $NetBSD: pinctrl-cv18xx.h,v 1.1.1.1 2026/01/18 05:21:53 skrll Exp $ */ 2 3/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ 4/* 5 * Copyright (C) 2023 Sophgo Ltd. 6 * 7 * Author: Inochi Amaoto <inochiama@outlook.com> 8 */ 9 10#ifndef _DT_BINDINGS_PINCTRL_CV18XX_H 11#define _DT_BINDINGS_PINCTRL_CV18XX_H 12 13#define PIN_MUX_INVALD 0xff 14 15#define PINMUX2(pin, mux, mux2) \ 16 (((pin) & 0xffff) | (((mux) & 0xff) << 16) | (((mux2) & 0xff) << 24)) 17 18#define PINMUX(pin, mux) \ 19 PINMUX2(pin, mux, PIN_MUX_INVALD) 20 21#endif /* _DT_BINDINGS_PINCTRL_CV18XX_H */ 22