1 /* SPDX-License-Identifier: (GPL-2.0-only OR B 1 2 /* 3 * Sunplus dt-bindings Pinctrl header file 4 * Copyright (C) Sunplus Tech / Tibbo Tech. 5 * Author: Dvorkin Dmitry <dvorkin@tibbo.com> 6 */ 7 8 #ifndef __DT_BINDINGS_PINCTRL_SPPCTL_H__ 9 #define __DT_BINDINGS_PINCTRL_SPPCTL_H__ 10 11 #define IOP_G_MASTE (0x01 << 0) 12 #define IOP_G_FIRST (0x01 << 1) 13 14 #define SPPCTL_PCTL_G_PMUX (0x00 | 15 #define SPPCTL_PCTL_G_GPIO (IOP_G_FIRST | 16 #define SPPCTL_PCTL_G_IOPP (IOP_G_FIRST | 17 18 #define SPPCTL_PCTL_L_OUT (0x01 << 0) 19 #define SPPCTL_PCTL_L_OU1 (0x01 << 1) 20 #define SPPCTL_PCTL_L_INV (0x01 << 2) 21 #define SPPCTL_PCTL_L_ONV (0x01 << 3) 22 #define SPPCTL_PCTL_L_ODR (0x01 << 4) 23 24 /* 25 * pack into 32-bit value: 26 * pin# (8bit), typ (8bit), function (8bit), f 27 */ 28 #define SPPCTL_IOPAD(pin, typ, fun, flg) 29 30 31 #endif 32
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.