diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-05 14:34:03 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-05 14:38:20 +0100 |
commit | a43fd50dc99a5f65505f174eca5a421707d73b4c (patch) | |
tree | 18292c81dca6e3511c30d148a09bbbed4871b2eb /include/linux/regmap.h | |
parent | bfd6185ddecc6e6f6bd654c053c307c9e49ca391 (diff) | |
download | lwn-a43fd50dc99a5f65505f174eca5a421707d73b4c.tar.gz lwn-a43fd50dc99a5f65505f174eca5a421707d73b4c.zip |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 56af22ec9aba..58ec0cba0ae6 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -219,6 +219,7 @@ struct regmap_irq { * @status_base: Base status register address. * @mask_base: Base mask register address. * @ack_base: Base ack address. If zero then the chip is clear on read. + * @wake_base: Base address for wake enables. If zero unsupported. * @irq_reg_stride: Stride to use for chips where registers are not contiguous. * * @num_regs: Number of registers in each control bank. @@ -232,6 +233,7 @@ struct regmap_irq_chip { unsigned int status_base; unsigned int mask_base; unsigned int ack_base; + unsigned int wake_base; unsigned int irq_reg_stride; int num_regs; |