aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-13 05:59:56 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-13 14:25:59 -0400
commit4af8be67fd9989f4e63a8d1defc1895ed0f7d341 (patch)
tree19059e119ba376ebd9b2e72fc135464552bd070d /drivers/mfd
parent06e65cb322f91dc20fbcfc1a7ee2fb105ecc417b (diff)
regmap: Convert regmap_irq to use irq_domain
This gets us up to date with the recommended current kernel infrastructure and should transparently give us device tree interrupt bindings for any devices using the framework. If an explicit IRQ mapping is passed in then a legacy interrupt range is created, otherwise a simple linear mapping is used. Previously a mapping was mandatory so existing drivers should not be affected. A function regmap_irq_get_virq() is provided to allow drivers to map individual IRQs which should be used in preference to the existing regmap_irq_chip_get_base() which is only valid if a legacy IRQ range is provided. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 11e44386fa9b..697d686927f8 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -376,6 +376,7 @@ config PMIC_DA9052
376 376
377config MFD_DA9052_SPI 377config MFD_DA9052_SPI
378 bool "Support Dialog Semiconductor DA9052/53 PMIC variants with SPI" 378 bool "Support Dialog Semiconductor DA9052/53 PMIC variants with SPI"
379 select IRQ_DOMAIN
379 select REGMAP_SPI 380 select REGMAP_SPI
380 select REGMAP_IRQ 381 select REGMAP_IRQ
381 select PMIC_DA9052 382 select PMIC_DA9052
@@ -388,6 +389,7 @@ config MFD_DA9052_SPI
388 389
389config MFD_DA9052_I2C 390config MFD_DA9052_I2C
390 bool "Support Dialog Semiconductor DA9052/53 PMIC variants with I2C" 391 bool "Support Dialog Semiconductor DA9052/53 PMIC variants with I2C"
392 select IRQ_DOMAIN
391 select REGMAP_I2C 393 select REGMAP_I2C
392 select REGMAP_IRQ 394 select REGMAP_IRQ
393 select PMIC_DA9052 395 select PMIC_DA9052
@@ -558,6 +560,7 @@ config MFD_WM8994
558 bool "Support Wolfson Microelectronics WM8994" 560 bool "Support Wolfson Microelectronics WM8994"
559 select MFD_CORE 561 select MFD_CORE
560 select REGMAP_I2C 562 select REGMAP_I2C
563 select IRQ_DOMAIN
561 select REGMAP_IRQ 564 select REGMAP_IRQ
562 depends on I2C=y && GENERIC_HARDIRQS 565 depends on I2C=y && GENERIC_HARDIRQS
563 help 566 help