]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Make twl4030 SIH SPARSE_IRQ capable
authorBenoit Cousson <b-cousson@ti.com>
Wed, 29 Feb 2012 21:38:06 +0000 (22:38 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 22 Mar 2012 12:04:54 +0000 (13:04 +0100)
commit0a062f26be50aec781a357838bbeeb28563db5b6
tree3beb31a6777b16926d81eb10d1ec0c901a175503
parentae82aec84ce668fbd296fdcdde8af727211449da
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>
drivers/gpio/gpio-twl4030.c
drivers/mfd/twl4030-irq.c
include/linux/i2c/twl.h