Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
gpio.h File Reference

Go to the source code of this file.

Macros

#define WM831X_GPN_DIR   0x8000 /* GPN_DIR */
 
#define WM831X_GPN_DIR_MASK   0x8000 /* GPN_DIR */
 
#define WM831X_GPN_DIR_SHIFT   15 /* GPN_DIR */
 
#define WM831X_GPN_DIR_WIDTH   1 /* GPN_DIR */
 
#define WM831X_GPN_PULL_MASK   0x6000 /* GPN_PULL - [14:13] */
 
#define WM831X_GPN_PULL_SHIFT   13 /* GPN_PULL - [14:13] */
 
#define WM831X_GPN_PULL_WIDTH   2 /* GPN_PULL - [14:13] */
 
#define WM831X_GPN_INT_MODE   0x1000 /* GPN_INT_MODE */
 
#define WM831X_GPN_INT_MODE_MASK   0x1000 /* GPN_INT_MODE */
 
#define WM831X_GPN_INT_MODE_SHIFT   12 /* GPN_INT_MODE */
 
#define WM831X_GPN_INT_MODE_WIDTH   1 /* GPN_INT_MODE */
 
#define WM831X_GPN_PWR_DOM   0x0800 /* GPN_PWR_DOM */
 
#define WM831X_GPN_PWR_DOM_MASK   0x0800 /* GPN_PWR_DOM */
 
#define WM831X_GPN_PWR_DOM_SHIFT   11 /* GPN_PWR_DOM */
 
#define WM831X_GPN_PWR_DOM_WIDTH   1 /* GPN_PWR_DOM */
 
#define WM831X_GPN_POL   0x0400 /* GPN_POL */
 
#define WM831X_GPN_POL_MASK   0x0400 /* GPN_POL */
 
#define WM831X_GPN_POL_SHIFT   10 /* GPN_POL */
 
#define WM831X_GPN_POL_WIDTH   1 /* GPN_POL */
 
#define WM831X_GPN_OD   0x0200 /* GPN_OD */
 
#define WM831X_GPN_OD_MASK   0x0200 /* GPN_OD */
 
#define WM831X_GPN_OD_SHIFT   9 /* GPN_OD */
 
#define WM831X_GPN_OD_WIDTH   1 /* GPN_OD */
 
#define WM831X_GPN_ENA   0x0080 /* GPN_ENA */
 
#define WM831X_GPN_ENA_MASK   0x0080 /* GPN_ENA */
 
#define WM831X_GPN_ENA_SHIFT   7 /* GPN_ENA */
 
#define WM831X_GPN_ENA_WIDTH   1 /* GPN_ENA */
 
#define WM831X_GPN_TRI   0x0080 /* GPN_TRI */
 
#define WM831X_GPN_TRI_MASK   0x0080 /* GPN_TRI */
 
#define WM831X_GPN_TRI_SHIFT   7 /* GPN_TRI */
 
#define WM831X_GPN_TRI_WIDTH   1 /* GPN_TRI */
 
#define WM831X_GPN_FN_MASK   0x000F /* GPN_FN - [3:0] */
 
#define WM831X_GPN_FN_SHIFT   0 /* GPN_FN - [3:0] */
 
#define WM831X_GPN_FN_WIDTH   4 /* GPN_FN - [3:0] */
 
#define WM831X_GPIO_PULL_NONE   (0 << WM831X_GPN_PULL_SHIFT)
 
#define WM831X_GPIO_PULL_DOWN   (1 << WM831X_GPN_PULL_SHIFT)
 
#define WM831X_GPIO_PULL_UP   (2 << WM831X_GPN_PULL_SHIFT)
 

Macro Definition Documentation

#define WM831X_GPIO_PULL_DOWN   (1 << WM831X_GPN_PULL_SHIFT)

Definition at line 57 of file gpio.h.

#define WM831X_GPIO_PULL_NONE   (0 << WM831X_GPN_PULL_SHIFT)

Definition at line 56 of file gpio.h.

#define WM831X_GPIO_PULL_UP   (2 << WM831X_GPN_PULL_SHIFT)

Definition at line 58 of file gpio.h.

#define WM831X_GPN_DIR   0x8000 /* GPN_DIR */

Definition at line 21 of file gpio.h.

#define WM831X_GPN_DIR_MASK   0x8000 /* GPN_DIR */

Definition at line 22 of file gpio.h.

#define WM831X_GPN_DIR_SHIFT   15 /* GPN_DIR */

Definition at line 23 of file gpio.h.

#define WM831X_GPN_DIR_WIDTH   1 /* GPN_DIR */

Definition at line 24 of file gpio.h.

#define WM831X_GPN_ENA   0x0080 /* GPN_ENA */

Definition at line 44 of file gpio.h.

#define WM831X_GPN_ENA_MASK   0x0080 /* GPN_ENA */

Definition at line 45 of file gpio.h.

#define WM831X_GPN_ENA_SHIFT   7 /* GPN_ENA */

Definition at line 46 of file gpio.h.

#define WM831X_GPN_ENA_WIDTH   1 /* GPN_ENA */

Definition at line 47 of file gpio.h.

#define WM831X_GPN_FN_MASK   0x000F /* GPN_FN - [3:0] */

Definition at line 52 of file gpio.h.

#define WM831X_GPN_FN_SHIFT   0 /* GPN_FN - [3:0] */

Definition at line 53 of file gpio.h.

#define WM831X_GPN_FN_WIDTH   4 /* GPN_FN - [3:0] */

Definition at line 54 of file gpio.h.

#define WM831X_GPN_INT_MODE   0x1000 /* GPN_INT_MODE */

Definition at line 28 of file gpio.h.

#define WM831X_GPN_INT_MODE_MASK   0x1000 /* GPN_INT_MODE */

Definition at line 29 of file gpio.h.

#define WM831X_GPN_INT_MODE_SHIFT   12 /* GPN_INT_MODE */

Definition at line 30 of file gpio.h.

#define WM831X_GPN_INT_MODE_WIDTH   1 /* GPN_INT_MODE */

Definition at line 31 of file gpio.h.

#define WM831X_GPN_OD   0x0200 /* GPN_OD */

Definition at line 40 of file gpio.h.

#define WM831X_GPN_OD_MASK   0x0200 /* GPN_OD */

Definition at line 41 of file gpio.h.

#define WM831X_GPN_OD_SHIFT   9 /* GPN_OD */

Definition at line 42 of file gpio.h.

#define WM831X_GPN_OD_WIDTH   1 /* GPN_OD */

Definition at line 43 of file gpio.h.

#define WM831X_GPN_POL   0x0400 /* GPN_POL */

Definition at line 36 of file gpio.h.

#define WM831X_GPN_POL_MASK   0x0400 /* GPN_POL */

Definition at line 37 of file gpio.h.

#define WM831X_GPN_POL_SHIFT   10 /* GPN_POL */

Definition at line 38 of file gpio.h.

#define WM831X_GPN_POL_WIDTH   1 /* GPN_POL */

Definition at line 39 of file gpio.h.

#define WM831X_GPN_PULL_MASK   0x6000 /* GPN_PULL - [14:13] */

Definition at line 25 of file gpio.h.

#define WM831X_GPN_PULL_SHIFT   13 /* GPN_PULL - [14:13] */

Definition at line 26 of file gpio.h.

#define WM831X_GPN_PULL_WIDTH   2 /* GPN_PULL - [14:13] */

Definition at line 27 of file gpio.h.

#define WM831X_GPN_PWR_DOM   0x0800 /* GPN_PWR_DOM */

Definition at line 32 of file gpio.h.

#define WM831X_GPN_PWR_DOM_MASK   0x0800 /* GPN_PWR_DOM */

Definition at line 33 of file gpio.h.

#define WM831X_GPN_PWR_DOM_SHIFT   11 /* GPN_PWR_DOM */

Definition at line 34 of file gpio.h.

#define WM831X_GPN_PWR_DOM_WIDTH   1 /* GPN_PWR_DOM */

Definition at line 35 of file gpio.h.

#define WM831X_GPN_TRI   0x0080 /* GPN_TRI */

Definition at line 48 of file gpio.h.

#define WM831X_GPN_TRI_MASK   0x0080 /* GPN_TRI */

Definition at line 49 of file gpio.h.

#define WM831X_GPN_TRI_SHIFT   7 /* GPN_TRI */

Definition at line 50 of file gpio.h.

#define WM831X_GPN_TRI_WIDTH   1 /* GPN_TRI */

Definition at line 51 of file gpio.h.