path: root/include
diff options
authorGraeme Gregory <>2012-05-14 22:40:43 +0900
committerSimone Willett <>2012-07-03 15:03:33 -0700
commit6d80ad162f51dfae870b32889de1d42bd51ccb4f (patch)
tree81b5f29015500246fca15d3ff2fd6375c96139ed /include
parent51978f469bcd8e5c59932938a72a8f20e7d5c73f (diff)
regmap: add support for non contiguous status to regmap-irq
In some chips the IRQ status registers are not contiguous in the register map but spaced at even spaces. This is an easy case to handle with minor changes. It is assume for this purpose that the stride for status is equal to the stride for mask/ack registers as well. Signed-off-by: Graeme Gregory <> Signed-off-by: Mark Brown <> (cherry picked from commit 022f926a2401c80ed36ebb48a1bffbac08f34d98) Change-Id: I68a59c8fd8a67062dac0eceaefcc85ed597f4a29 Reviewed-on: http://git-master/r/111484 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Pradeep Goudagunta <> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <>
Diffstat (limited to 'include')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 6986d16aeca8..3a97248c5125 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -212,6 +212,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.
+ * @irq_reg_stride: Stride to use for chips where registers are not contiguous.
* @num_regs: Number of registers in each control bank.
* @irqs: Descriptors for individual IRQs. Interrupt numbers are
@@ -224,6 +225,7 @@ struct regmap_irq_chip {
unsigned int status_base;
unsigned int mask_base;
unsigned int ack_base;
+ unsigned int irq_reg_stride;
int num_regs;