aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-05 09:34:03 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-05 09:38:20 -0400
commita43fd50dc99a5f65505f174eca5a421707d73b4c (patch)
tree18292c81dca6e3511c30d148a09bbbed4871b2eb /include/linux/regmap.h
parentbfd6185ddecc6e6f6bd654c053c307c9e49ca391 (diff)
regmap: Implement support for wake IRQs
Allow chips to provide a bank of registers for controlling the wake state in a similar fashion to the masks and propagate the wake count to the parent interrupt controller. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 56af22ec9ab..58ec0cba0ae 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -219,6 +219,7 @@ struct regmap_irq {
219 * @status_base: Base status register address. 219 * @status_base: Base status register address.
220 * @mask_base: Base mask register address. 220 * @mask_base: Base mask register address.
221 * @ack_base: Base ack address. If zero then the chip is clear on read. 221 * @ack_base: Base ack address. If zero then the chip is clear on read.
222 * @wake_base: Base address for wake enables. If zero unsupported.
222 * @irq_reg_stride: Stride to use for chips where registers are not contiguous. 223 * @irq_reg_stride: Stride to use for chips where registers are not contiguous.
223 * 224 *
224 * @num_regs: Number of registers in each control bank. 225 * @num_regs: Number of registers in each control bank.
@@ -232,6 +233,7 @@ struct regmap_irq_chip {
232 unsigned int status_base; 233 unsigned int status_base;
233 unsigned int mask_base; 234 unsigned int mask_base;
234 unsigned int ack_base; 235 unsigned int ack_base;
236 unsigned int wake_base;
235 unsigned int irq_reg_stride; 237 unsigned int irq_reg_stride;
236 238
237 int num_regs; 239 int num_regs;