diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2011-11-17 00:32:23 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-01-08 18:37:44 -0500 |
commit | 7f7f4ea15ef4645f3888310a7a761fc2c4f689c9 (patch) | |
tree | 2e1f8b27af9a3b6a328630d24dc97fb201da3ec4 /drivers/mfd/stmpe.h | |
parent | 1cda2394e95415f1469ab8eaffd081395e112551 (diff) |
mfd: Add support for stmpe variant 801
STMPE801 is a GPIO expander. Registers for 801 are much different from other
variants. This patch adds support for STMPE801 in stmpe mfd driver.
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@st.com>
Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/stmpe.h')
-rw-r--r-- | drivers/mfd/stmpe.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/mfd/stmpe.h b/drivers/mfd/stmpe.h index a73f4c1085f2..7b8e13f5b764 100644 --- a/drivers/mfd/stmpe.h +++ b/drivers/mfd/stmpe.h | |||
@@ -105,6 +105,25 @@ int stmpe_remove(struct stmpe *stmpe); | |||
105 | #define STMPE_ICR_LSB_GIM (1 << 0) | 105 | #define STMPE_ICR_LSB_GIM (1 << 0) |
106 | 106 | ||
107 | /* | 107 | /* |
108 | * STMPE801 | ||
109 | */ | ||
110 | #define STMPE801_ID 0x0108 | ||
111 | #define STMPE801_NR_INTERNAL_IRQS 1 | ||
112 | |||
113 | #define STMPE801_REG_CHIP_ID 0x00 | ||
114 | #define STMPE801_REG_VERSION_ID 0x02 | ||
115 | #define STMPE801_REG_SYS_CTRL 0x04 | ||
116 | #define STMPE801_REG_GPIO_INT_EN 0x08 | ||
117 | #define STMPE801_REG_GPIO_INT_STA 0x09 | ||
118 | #define STMPE801_REG_GPIO_MP_STA 0x10 | ||
119 | #define STMPE801_REG_GPIO_SET_PIN 0x11 | ||
120 | #define STMPE801_REG_GPIO_DIR 0x12 | ||
121 | |||
122 | #define STMPE801_REG_SYS_CTRL_RESET (1 << 7) | ||
123 | #define STMPE801_REG_SYS_CTRL_INT_EN (1 << 2) | ||
124 | #define STMPE801_REG_SYS_CTRL_INT_HI (1 << 0) | ||
125 | |||
126 | /* | ||
108 | * STMPE811 | 127 | * STMPE811 |
109 | */ | 128 | */ |
110 | 129 | ||