summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/qcom/Kconfig
diff options
context:
space:
mode:
authorBrian Masney <masneyb@onstation.org>2019-02-07 21:16:26 -0500
committerLinus Walleij <linus.walleij@linaro.org>2019-02-13 09:32:10 +0100
commit9d2b563bc23acfa93e7716b3396fd2f79fa8f0cd (patch)
tree6547a2f8d4c086617313eebd54fc997e1000134a /drivers/pinctrl/qcom/Kconfig
parentee08e24c2e761e6aa3ef2c03cc2004e11fe111b3 (diff)
qcom: ssbi-gpio: add support for hierarchical IRQ chip
ssbi-gpio did not have any irqchip support so consumers of this in device tree would need to call gpio[d]_to_irq() in order to get the proper IRQ on the underlying PMIC. IRQ chips in device tree should be usable from the start without the consumer having to make an additional call to get the proper IRQ on the parent. This patch adds hierarchical IRQ chip support to the ssbi-gpio code to correct this issue. The constant PM8XXX_GPIO_PHYSICAL_OFFSET is introduced to replace the hardcoded '1' that previously existed in two places in this driver to improve code readability. This change was tested on an APQ8060 DragonBoard. Signed-off-by: Brian Masney <masneyb@onstation.org> Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom/Kconfig')
-rw-r--r--drivers/pinctrl/qcom/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig
index 836e9f3eae4c..8e7e4255b7a4 100644
--- a/drivers/pinctrl/qcom/Kconfig
+++ b/drivers/pinctrl/qcom/Kconfig
@@ -149,6 +149,7 @@ config PINCTRL_QCOM_SSBI_PMIC
select PINMUX
select PINCONF
select GENERIC_PINCONF
+ select IRQ_DOMAIN_HIERARCHY
help
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,