aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c/twl.h
diff options
context:
space:
mode:
authorBenoit Cousson <b-cousson@ti.com>2012-02-29 16:38:06 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2012-03-22 08:04:54 -0400
commitf01b1f90bf46ddaf2a68215a9489364c974e5689 (patch)
tree3beb31a6777b16926d81eb10d1ec0c901a175503 /include/linux/i2c/twl.h
parent78518ffa08fceee42d61359303c58bdd0a82033f (diff)
mfd: Make twl4030 SIH SPARSE_IRQ capable
twl4030 is using a two level irq controllers infrastruture. So far, only the first level was using dynamic irq_desc allocation to be able to have irq_domain support for device tree. There is a need to allocate separate irq_descs for the SIH too to avoid hacking the first level with interrupts from the second level. Add an irq_base parameter to allow the caller to provide the base from pdata or from dynamic allocation. Affect TWL4030_NR_IRQS to the twl-core IRQs only. Moreover that will allow the extraction of the of_node pointer for further Device Tree conversion. Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Benoit Cousson <b-cousson@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/i2c/twl.h')
-rw-r--r--include/linux/i2c/twl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h
index 78d3465251d6..8b9904abd9ca 100644
--- a/include/linux/i2c/twl.h
+++ b/include/linux/i2c/twl.h
@@ -751,7 +751,7 @@ struct twl4030_platform_data {
751 751
752/*----------------------------------------------------------------------*/ 752/*----------------------------------------------------------------------*/
753 753
754int twl4030_sih_setup(int module); 754int twl4030_sih_setup(struct device *dev, int module, int irq_base);
755 755
756/* Offsets to Power Registers */ 756/* Offsets to Power Registers */
757#define TWL4030_VDAC_DEV_GRP 0x3B 757#define TWL4030_VDAC_DEV_GRP 0x3B