1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * This header provides constants for Keystone 3 * This header provides constants for Keystone pinctrl bindings. 4 * 4 * 5 * Copyright (C) 2016 Texas Instruments Incorp 5 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 6 */ 6 */ 7 7 8 #ifndef _DT_BINDINGS_PINCTRL_KEYSTONE_H 8 #ifndef _DT_BINDINGS_PINCTRL_KEYSTONE_H 9 #define _DT_BINDINGS_PINCTRL_KEYSTONE_H 9 #define _DT_BINDINGS_PINCTRL_KEYSTONE_H 10 10 11 #define MUX_MODE0 0 11 #define MUX_MODE0 0 12 #define MUX_MODE1 1 12 #define MUX_MODE1 1 13 #define MUX_MODE2 2 13 #define MUX_MODE2 2 14 #define MUX_MODE3 3 14 #define MUX_MODE3 3 15 #define MUX_MODE4 4 15 #define MUX_MODE4 4 16 #define MUX_MODE5 5 16 #define MUX_MODE5 5 17 17 18 #define BUFFER_CLASS_B (0 << 19) 18 #define BUFFER_CLASS_B (0 << 19) 19 #define BUFFER_CLASS_C (1 << 19) 19 #define BUFFER_CLASS_C (1 << 19) 20 #define BUFFER_CLASS_D (2 << 19) 20 #define BUFFER_CLASS_D (2 << 19) 21 #define BUFFER_CLASS_E (3 << 19) 21 #define BUFFER_CLASS_E (3 << 19) 22 22 23 #define PULL_DISABLE (1 << 16) 23 #define PULL_DISABLE (1 << 16) 24 #define PIN_PULLUP (1 << 17) 24 #define PIN_PULLUP (1 << 17) 25 #define PIN_PULLDOWN (0 << 17) 25 #define PIN_PULLDOWN (0 << 17) 26 26 27 #define KEYSTONE_IOPAD_OFFSET(pa, offset) (((p 27 #define KEYSTONE_IOPAD_OFFSET(pa, offset) (((pa) & 0xffff) - (offset)) 28 28 29 #define K2G_CORE_IOPAD(pa) KEYSTONE_IOPAD_OFFS 29 #define K2G_CORE_IOPAD(pa) KEYSTONE_IOPAD_OFFSET((pa), 0x1000) 30 30 31 #endif 31 #endif 32 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.