1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * This header provides constants for Keystone 2 * This header provides constants for Keystone pinctrl bindings. 4 * 3 * 5 * Copyright (C) 2016 Texas Instruments Incorp 4 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ >> 5 * >> 6 * This program is free software; you can redistribute it and/or modify >> 7 * it under the terms of the GNU General Public License version 2 as >> 8 * published by the Free Software Foundation. >> 9 * >> 10 * This program is distributed "as is" WITHOUT ANY WARRANTY of any >> 11 * kind, whether express or implied; without even the implied warranty >> 12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 13 * GNU General Public License for more details. 6 */ 14 */ 7 15 8 #ifndef _DT_BINDINGS_PINCTRL_KEYSTONE_H 16 #ifndef _DT_BINDINGS_PINCTRL_KEYSTONE_H 9 #define _DT_BINDINGS_PINCTRL_KEYSTONE_H 17 #define _DT_BINDINGS_PINCTRL_KEYSTONE_H 10 18 11 #define MUX_MODE0 0 19 #define MUX_MODE0 0 12 #define MUX_MODE1 1 20 #define MUX_MODE1 1 13 #define MUX_MODE2 2 21 #define MUX_MODE2 2 14 #define MUX_MODE3 3 22 #define MUX_MODE3 3 15 #define MUX_MODE4 4 23 #define MUX_MODE4 4 16 #define MUX_MODE5 5 24 #define MUX_MODE5 5 17 25 18 #define BUFFER_CLASS_B (0 << 19) 26 #define BUFFER_CLASS_B (0 << 19) 19 #define BUFFER_CLASS_C (1 << 19) 27 #define BUFFER_CLASS_C (1 << 19) 20 #define BUFFER_CLASS_D (2 << 19) 28 #define BUFFER_CLASS_D (2 << 19) 21 #define BUFFER_CLASS_E (3 << 19) 29 #define BUFFER_CLASS_E (3 << 19) 22 30 23 #define PULL_DISABLE (1 << 16) 31 #define PULL_DISABLE (1 << 16) 24 #define PIN_PULLUP (1 << 17) 32 #define PIN_PULLUP (1 << 17) 25 #define PIN_PULLDOWN (0 << 17) 33 #define PIN_PULLDOWN (0 << 17) 26 34 27 #define KEYSTONE_IOPAD_OFFSET(pa, offset) (((p 35 #define KEYSTONE_IOPAD_OFFSET(pa, offset) (((pa) & 0xffff) - (offset)) 28 36 29 #define K2G_CORE_IOPAD(pa) KEYSTONE_IOPAD_OFFS 37 #define K2G_CORE_IOPAD(pa) KEYSTONE_IOPAD_OFFSET((pa), 0x1000) 30 38 31 #endif 39 #endif 32 40
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.