1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 /* 3 * include/linux/mfd/wm831x/gpio.h -- GPIO for 4 * 5 * Copyright 2009 Wolfson Microelectronics PLC 6 * 7 * Author: Mark Brown <broonie@opensource.wolf 8 */ 9 10 #ifndef __MFD_WM831X_GPIO_H__ 11 #define __MFD_WM831X_GPIO_H__ 12 13 /* 14 * R16440-16455 (0x4038-0x4047) - GPIOx Contro 15 */ 16 #define WM831X_GPN_DIR 17 #define WM831X_GPN_DIR_MASK 18 #define WM831X_GPN_DIR_SHIFT 19 #define WM831X_GPN_DIR_WIDTH 20 #define WM831X_GPN_PULL_MASK 21 #define WM831X_GPN_PULL_SHIFT 22 #define WM831X_GPN_PULL_WIDTH 23 #define WM831X_GPN_INT_MODE 24 #define WM831X_GPN_INT_MODE_MASK 25 #define WM831X_GPN_INT_MODE_SHIFT 26 #define WM831X_GPN_INT_MODE_WIDTH 27 #define WM831X_GPN_PWR_DOM 28 #define WM831X_GPN_PWR_DOM_MASK 29 #define WM831X_GPN_PWR_DOM_SHIFT 30 #define WM831X_GPN_PWR_DOM_WIDTH 31 #define WM831X_GPN_POL 32 #define WM831X_GPN_POL_MASK 33 #define WM831X_GPN_POL_SHIFT 34 #define WM831X_GPN_POL_WIDTH 35 #define WM831X_GPN_OD 36 #define WM831X_GPN_OD_MASK 37 #define WM831X_GPN_OD_SHIFT 38 #define WM831X_GPN_OD_WIDTH 39 #define WM831X_GPN_ENA 40 #define WM831X_GPN_ENA_MASK 41 #define WM831X_GPN_ENA_SHIFT 42 #define WM831X_GPN_ENA_WIDTH 43 #define WM831X_GPN_TRI 44 #define WM831X_GPN_TRI_MASK 45 #define WM831X_GPN_TRI_SHIFT 46 #define WM831X_GPN_TRI_WIDTH 47 #define WM831X_GPN_FN_MASK 48 #define WM831X_GPN_FN_SHIFT 49 #define WM831X_GPN_FN_WIDTH 50 51 #define WM831X_GPIO_PULL_NONE (0 << WM831X_GPN 52 #define WM831X_GPIO_PULL_DOWN (1 << WM831X_GPN 53 #define WM831X_GPIO_PULL_UP (2 << WM831X_GPN 54 #endif 55
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.