diff options
author | Sundar R Iyer <sundar.iyer@stericsson.com> | 2010-07-21 02:11:07 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-12 05:28:00 -0400 |
commit | 5981f4e65cb455a820b3d07b8e4bac506233f3ea (patch) | |
tree | 541a0ba41593bda73d1ce9b3ce004de43dcccd85 /include/linux/mfd | |
parent | 3faeb35ccc57e1af70c54b82063fdf4a88846084 (diff) |
mfd: Add stmpe auto sleep feature
Some STMPE devices support entering sleep mode automatically on a
specified timeout of inactivity on the I2C bus with the host system.
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Sundar R Iyer <sundar.iyer@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/stmpe.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/stmpe.h b/include/linux/mfd/stmpe.h index 90faa98b577f..39ca7588659b 100644 --- a/include/linux/mfd/stmpe.h +++ b/include/linux/mfd/stmpe.h | |||
@@ -170,6 +170,8 @@ struct stmpe_ts_platform_data { | |||
170 | * @blocks: bitmask of blocks to enable (use STMPE_BLOCK_*) | 170 | * @blocks: bitmask of blocks to enable (use STMPE_BLOCK_*) |
171 | * @irq_trigger: IRQ trigger to use for the interrupt to the host | 171 | * @irq_trigger: IRQ trigger to use for the interrupt to the host |
172 | * @irq_invert_polarity: IRQ line is connected with reversed polarity | 172 | * @irq_invert_polarity: IRQ line is connected with reversed polarity |
173 | * @autosleep: bool to enable/disable stmpe autosleep | ||
174 | * @autosleep_timeout: inactivity timeout in milliseconds for autosleep | ||
173 | * @irq_base: base IRQ number. %STMPE_NR_IRQS irqs will be used, or | 175 | * @irq_base: base IRQ number. %STMPE_NR_IRQS irqs will be used, or |
174 | * %STMPE_NR_INTERNAL_IRQS if the GPIO driver is not used. | 176 | * %STMPE_NR_INTERNAL_IRQS if the GPIO driver is not used. |
175 | * @gpio: GPIO-specific platform data | 177 | * @gpio: GPIO-specific platform data |
@@ -182,6 +184,8 @@ struct stmpe_platform_data { | |||
182 | int irq_base; | 184 | int irq_base; |
183 | unsigned int irq_trigger; | 185 | unsigned int irq_trigger; |
184 | bool irq_invert_polarity; | 186 | bool irq_invert_polarity; |
187 | bool autosleep; | ||
188 | int autosleep_timeout; | ||
185 | 189 | ||
186 | struct stmpe_gpio_platform_data *gpio; | 190 | struct stmpe_gpio_platform_data *gpio; |
187 | struct stmpe_keypad_platform_data *keypad; | 191 | struct stmpe_keypad_platform_data *keypad; |