~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/wm831x/gpio.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/mfd/wm831x/gpio.h (Version linux-6.12-rc7) and /include/linux/mfd/wm831x/gpio.h (Version linux-4.9.337)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 /*                                                  1 /*
  3  * include/linux/mfd/wm831x/gpio.h -- GPIO for      2  * include/linux/mfd/wm831x/gpio.h -- GPIO for WM831x
  4  *                                                  3  *
  5  * Copyright 2009 Wolfson Microelectronics PLC      4  * Copyright 2009 Wolfson Microelectronics PLC.
  6  *                                                  5  *
  7  * Author: Mark Brown <broonie@opensource.wolf      6  * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
                                                   >>   7  *
                                                   >>   8  *  This program is free software; you can redistribute  it and/or modify it
                                                   >>   9  *  under  the terms of  the GNU General  Public License as published by the
                                                   >>  10  *  Free Software Foundation;  either version 2 of the  License, or (at your
                                                   >>  11  *  option) any later version.
                                                   >>  12  *
  8  */                                                13  */
  9                                                    14 
 10 #ifndef __MFD_WM831X_GPIO_H__                      15 #ifndef __MFD_WM831X_GPIO_H__
 11 #define __MFD_WM831X_GPIO_H__                      16 #define __MFD_WM831X_GPIO_H__
 12                                                    17 
 13 /*                                                 18 /*
 14  * R16440-16455 (0x4038-0x4047) - GPIOx Contro     19  * R16440-16455 (0x4038-0x4047) - GPIOx Control
 15  */                                                20  */
 16 #define WM831X_GPN_DIR                             21 #define WM831X_GPN_DIR                          0x8000  /* GPN_DIR */
 17 #define WM831X_GPN_DIR_MASK                        22 #define WM831X_GPN_DIR_MASK                     0x8000  /* GPN_DIR */
 18 #define WM831X_GPN_DIR_SHIFT                       23 #define WM831X_GPN_DIR_SHIFT                        15  /* GPN_DIR */
 19 #define WM831X_GPN_DIR_WIDTH                       24 #define WM831X_GPN_DIR_WIDTH                         1  /* GPN_DIR */
 20 #define WM831X_GPN_PULL_MASK                       25 #define WM831X_GPN_PULL_MASK                    0x6000  /* GPN_PULL - [14:13] */
 21 #define WM831X_GPN_PULL_SHIFT                      26 #define WM831X_GPN_PULL_SHIFT                       13  /* GPN_PULL - [14:13] */
 22 #define WM831X_GPN_PULL_WIDTH                      27 #define WM831X_GPN_PULL_WIDTH                        2  /* GPN_PULL - [14:13] */
 23 #define WM831X_GPN_INT_MODE                        28 #define WM831X_GPN_INT_MODE                     0x1000  /* GPN_INT_MODE */
 24 #define WM831X_GPN_INT_MODE_MASK                   29 #define WM831X_GPN_INT_MODE_MASK                0x1000  /* GPN_INT_MODE */
 25 #define WM831X_GPN_INT_MODE_SHIFT                  30 #define WM831X_GPN_INT_MODE_SHIFT                   12  /* GPN_INT_MODE */
 26 #define WM831X_GPN_INT_MODE_WIDTH                  31 #define WM831X_GPN_INT_MODE_WIDTH                    1  /* GPN_INT_MODE */
 27 #define WM831X_GPN_PWR_DOM                         32 #define WM831X_GPN_PWR_DOM                      0x0800  /* GPN_PWR_DOM */
 28 #define WM831X_GPN_PWR_DOM_MASK                    33 #define WM831X_GPN_PWR_DOM_MASK                 0x0800  /* GPN_PWR_DOM */
 29 #define WM831X_GPN_PWR_DOM_SHIFT                   34 #define WM831X_GPN_PWR_DOM_SHIFT                    11  /* GPN_PWR_DOM */
 30 #define WM831X_GPN_PWR_DOM_WIDTH                   35 #define WM831X_GPN_PWR_DOM_WIDTH                     1  /* GPN_PWR_DOM */
 31 #define WM831X_GPN_POL                             36 #define WM831X_GPN_POL                          0x0400  /* GPN_POL */
 32 #define WM831X_GPN_POL_MASK                        37 #define WM831X_GPN_POL_MASK                     0x0400  /* GPN_POL */
 33 #define WM831X_GPN_POL_SHIFT                       38 #define WM831X_GPN_POL_SHIFT                        10  /* GPN_POL */
 34 #define WM831X_GPN_POL_WIDTH                       39 #define WM831X_GPN_POL_WIDTH                         1  /* GPN_POL */
 35 #define WM831X_GPN_OD                              40 #define WM831X_GPN_OD                           0x0200  /* GPN_OD */
 36 #define WM831X_GPN_OD_MASK                         41 #define WM831X_GPN_OD_MASK                      0x0200  /* GPN_OD */
 37 #define WM831X_GPN_OD_SHIFT                        42 #define WM831X_GPN_OD_SHIFT                          9  /* GPN_OD */
 38 #define WM831X_GPN_OD_WIDTH                        43 #define WM831X_GPN_OD_WIDTH                          1  /* GPN_OD */
 39 #define WM831X_GPN_ENA                             44 #define WM831X_GPN_ENA                          0x0080  /* GPN_ENA */
 40 #define WM831X_GPN_ENA_MASK                        45 #define WM831X_GPN_ENA_MASK                     0x0080  /* GPN_ENA */
 41 #define WM831X_GPN_ENA_SHIFT                       46 #define WM831X_GPN_ENA_SHIFT                         7  /* GPN_ENA */
 42 #define WM831X_GPN_ENA_WIDTH                       47 #define WM831X_GPN_ENA_WIDTH                         1  /* GPN_ENA */
 43 #define WM831X_GPN_TRI                             48 #define WM831X_GPN_TRI                          0x0080  /* GPN_TRI */
 44 #define WM831X_GPN_TRI_MASK                        49 #define WM831X_GPN_TRI_MASK                     0x0080  /* GPN_TRI */
 45 #define WM831X_GPN_TRI_SHIFT                       50 #define WM831X_GPN_TRI_SHIFT                         7  /* GPN_TRI */
 46 #define WM831X_GPN_TRI_WIDTH                       51 #define WM831X_GPN_TRI_WIDTH                         1  /* GPN_TRI */
 47 #define WM831X_GPN_FN_MASK                         52 #define WM831X_GPN_FN_MASK                      0x000F  /* GPN_FN - [3:0] */
 48 #define WM831X_GPN_FN_SHIFT                        53 #define WM831X_GPN_FN_SHIFT                          0  /* GPN_FN - [3:0] */
 49 #define WM831X_GPN_FN_WIDTH                        54 #define WM831X_GPN_FN_WIDTH                          4  /* GPN_FN - [3:0] */
 50                                                    55 
 51 #define WM831X_GPIO_PULL_NONE (0 << WM831X_GPN     56 #define WM831X_GPIO_PULL_NONE (0 << WM831X_GPN_PULL_SHIFT)
 52 #define WM831X_GPIO_PULL_DOWN (1 << WM831X_GPN     57 #define WM831X_GPIO_PULL_DOWN (1 << WM831X_GPN_PULL_SHIFT)
 53 #define WM831X_GPIO_PULL_UP   (2 << WM831X_GPN     58 #define WM831X_GPIO_PULL_UP   (2 << WM831X_GPN_PULL_SHIFT)
 54 #endif                                             59 #endif
 55                                                    60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php