diff options
| author | David S. Miller <davem@davemloft.net> | 2010-04-03 18:49:14 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-04-03 18:49:14 -0400 |
| commit | 87e8b821ed8db3dab03d96cd542e29666bf210aa (patch) | |
| tree | 0027060473aafbbb125655ba027319c8a1a665fc /include/linux/mfd/wm8994/gpio.h | |
| parent | 33cd9dfa3a13e3d8e41aef225a9f98169816723b (diff) | |
| parent | 5e11611a5d22252f3f9c169a3c9377eac0c32033 (diff) | |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Diffstat (limited to 'include/linux/mfd/wm8994/gpio.h')
| -rw-r--r-- | include/linux/mfd/wm8994/gpio.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8994/gpio.h b/include/linux/mfd/wm8994/gpio.h new file mode 100644 index 000000000000..b4d4c22991e8 --- /dev/null +++ b/include/linux/mfd/wm8994/gpio.h | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | /* | ||
| 2 | * include/linux/mfd/wm8994/gpio.h - GPIO configuration for WM8994 | ||
| 3 | * | ||
| 4 | * Copyright 2009 Wolfson Microelectronics PLC. | ||
| 5 | * | ||
| 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 | * | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef __MFD_WM8994_GPIO_H__ | ||
| 16 | #define __MFD_WM8994_GPIO_H__ | ||
| 17 | |||
| 18 | #define WM8994_GPIO_MAX 11 | ||
| 19 | |||
| 20 | #define WM8994_GP_FN_PIN_SPECIFIC 0 | ||
| 21 | #define WM8994_GP_FN_GPIO 1 | ||
| 22 | #define WM8994_GP_FN_SDOUT 2 | ||
| 23 | #define WM8994_GP_FN_IRQ 3 | ||
| 24 | #define WM8994_GP_FN_TEMPERATURE 4 | ||
| 25 | #define WM8994_GP_FN_MICBIAS1_DET 5 | ||
| 26 | #define WM8994_GP_FN_MICBIAS1_SHORT 6 | ||
| 27 | #define WM8994_GP_FN_MICBIAS2_DET 7 | ||
| 28 | #define WM8994_GP_FN_MICBIAS2_SHORT 8 | ||
| 29 | #define WM8994_GP_FN_FLL1_LOCK 9 | ||
| 30 | #define WM8994_GP_FN_FLL2_LOCK 10 | ||
| 31 | #define WM8994_GP_FN_SRC1_LOCK 11 | ||
| 32 | #define WM8994_GP_FN_SRC2_LOCK 12 | ||
| 33 | #define WM8994_GP_FN_DRC1_ACT 13 | ||
| 34 | #define WM8994_GP_FN_DRC2_ACT 14 | ||
| 35 | #define WM8994_GP_FN_DRC3_ACT 15 | ||
| 36 | #define WM8994_GP_FN_WSEQ_STATUS 16 | ||
| 37 | #define WM8994_GP_FN_FIFO_ERROR 17 | ||
| 38 | #define WM8994_GP_FN_OPCLK 18 | ||
| 39 | |||
| 40 | #define WM8994_GPN_DIR 0x8000 /* GPN_DIR */ | ||
| 41 | #define WM8994_GPN_DIR_MASK 0x8000 /* GPN_DIR */ | ||
| 42 | #define WM8994_GPN_DIR_SHIFT 15 /* GPN_DIR */ | ||
| 43 | #define WM8994_GPN_DIR_WIDTH 1 /* GPN_DIR */ | ||
| 44 | #define WM8994_GPN_PU 0x4000 /* GPN_PU */ | ||
| 45 | #define WM8994_GPN_PU_MASK 0x4000 /* GPN_PU */ | ||
| 46 | #define WM8994_GPN_PU_SHIFT 14 /* GPN_PU */ | ||
| 47 | #define WM8994_GPN_PU_WIDTH 1 /* GPN_PU */ | ||
| 48 | #define WM8994_GPN_PD 0x2000 /* GPN_PD */ | ||
| 49 | #define WM8994_GPN_PD_MASK 0x2000 /* GPN_PD */ | ||
| 50 | #define WM8994_GPN_PD_SHIFT 13 /* GPN_PD */ | ||
| 51 | #define WM8994_GPN_PD_WIDTH 1 /* GPN_PD */ | ||
| 52 | #define WM8994_GPN_POL 0x0400 /* GPN_POL */ | ||
| 53 | #define WM8994_GPN_POL_MASK 0x0400 /* GPN_POL */ | ||
| 54 | #define WM8994_GPN_POL_SHIFT 10 /* GPN_POL */ | ||
| 55 | #define WM8994_GPN_POL_WIDTH 1 /* GPN_POL */ | ||
| 56 | #define WM8994_GPN_OP_CFG 0x0200 /* GPN_OP_CFG */ | ||
| 57 | #define WM8994_GPN_OP_CFG_MASK 0x0200 /* GPN_OP_CFG */ | ||
| 58 | #define WM8994_GPN_OP_CFG_SHIFT 9 /* GPN_OP_CFG */ | ||
| 59 | #define WM8994_GPN_OP_CFG_WIDTH 1 /* GPN_OP_CFG */ | ||
| 60 | #define WM8994_GPN_DB 0x0100 /* GPN_DB */ | ||
| 61 | #define WM8994_GPN_DB_MASK 0x0100 /* GPN_DB */ | ||
| 62 | #define WM8994_GPN_DB_SHIFT 8 /* GPN_DB */ | ||
| 63 | #define WM8994_GPN_DB_WIDTH 1 /* GPN_DB */ | ||
| 64 | #define WM8994_GPN_LVL 0x0040 /* GPN_LVL */ | ||
| 65 | #define WM8994_GPN_LVL_MASK 0x0040 /* GPN_LVL */ | ||
| 66 | #define WM8994_GPN_LVL_SHIFT 6 /* GPN_LVL */ | ||
| 67 | #define WM8994_GPN_LVL_WIDTH 1 /* GPN_LVL */ | ||
| 68 | #define WM8994_GPN_FN_MASK 0x001F /* GPN_FN - [4:0] */ | ||
| 69 | #define WM8994_GPN_FN_SHIFT 0 /* GPN_FN - [4:0] */ | ||
| 70 | #define WM8994_GPN_FN_WIDTH 5 /* GPN_FN - [4:0] */ | ||
| 71 | |||
| 72 | #endif | ||
