diff options
author | Quentin Schulz <quentin.schulz@free-electrons.com> | 2017-12-05 09:46:40 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-12-07 04:05:30 -0500 |
commit | 449317a8b4c4ed47c2a51f864c4697ae57195b96 (patch) | |
tree | 1035da121fb30021659546d8015f724ac93f4ceb /drivers | |
parent | 3cac991e33b1395430c09ae49039702eb6748c7d (diff) |
pinctrl: move gpio-axp209 to pinctrl
To prepare the driver for the upcoming pinctrl features, move the GPIO
driver AXP209 from GPIO to pinctrl subsystem.
Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/Kconfig | 6 | ||||
-rw-r--r-- | drivers/gpio/Makefile | 1 | ||||
-rw-r--r-- | drivers/pinctrl/Kconfig | 10 | ||||
-rw-r--r-- | drivers/pinctrl/Makefile | 1 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-axp209.c (renamed from drivers/gpio/gpio-axp209.c) | 0 |
5 files changed, 11 insertions, 7 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index d6a8e851ad13..395669bfcc26 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -122,12 +122,6 @@ config GPIO_ATH79 | |||
122 | Select this option to enable GPIO driver for | 122 | Select this option to enable GPIO driver for |
123 | Atheros AR71XX/AR724X/AR913X SoC devices. | 123 | Atheros AR71XX/AR724X/AR913X SoC devices. |
124 | 124 | ||
125 | config GPIO_AXP209 | ||
126 | tristate "X-Powers AXP209 PMIC GPIO Support" | ||
127 | depends on MFD_AXP20X | ||
128 | help | ||
129 | Say yes to enable GPIO support for the AXP209 PMIC | ||
130 | |||
131 | config GPIO_BCM_KONA | 125 | config GPIO_BCM_KONA |
132 | bool "Broadcom Kona GPIO" | 126 | bool "Broadcom Kona GPIO" |
133 | depends on OF_GPIO && (ARCH_BCM_MOBILE || COMPILE_TEST) | 127 | depends on OF_GPIO && (ARCH_BCM_MOBILE || COMPILE_TEST) |
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 4bc24febb889..bc5dd673fa11 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile | |||
@@ -32,7 +32,6 @@ obj-$(CONFIG_GPIO_AMDPT) += gpio-amdpt.o | |||
32 | obj-$(CONFIG_GPIO_ARIZONA) += gpio-arizona.o | 32 | obj-$(CONFIG_GPIO_ARIZONA) += gpio-arizona.o |
33 | obj-$(CONFIG_GPIO_ATH79) += gpio-ath79.o | 33 | obj-$(CONFIG_GPIO_ATH79) += gpio-ath79.o |
34 | obj-$(CONFIG_GPIO_ASPEED) += gpio-aspeed.o | 34 | obj-$(CONFIG_GPIO_ASPEED) += gpio-aspeed.o |
35 | obj-$(CONFIG_GPIO_AXP209) += gpio-axp209.o | ||
36 | obj-$(CONFIG_GPIO_BCM_KONA) += gpio-bcm-kona.o | 35 | obj-$(CONFIG_GPIO_BCM_KONA) += gpio-bcm-kona.o |
37 | obj-$(CONFIG_GPIO_BD9571MWV) += gpio-bd9571mwv.o | 36 | obj-$(CONFIG_GPIO_BD9571MWV) += gpio-bd9571mwv.o |
38 | obj-$(CONFIG_GPIO_BRCMSTB) += gpio-brcmstb.o | 37 | obj-$(CONFIG_GPIO_BRCMSTB) += gpio-brcmstb.o |
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 4571cc098b76..ce126955212c 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig | |||
@@ -63,6 +63,16 @@ config PINCTRL_AS3722 | |||
63 | open drain configuration for the GPIO pins of AS3722 devices. It also | 63 | open drain configuration for the GPIO pins of AS3722 devices. It also |
64 | supports the GPIO functionality through gpiolib. | 64 | supports the GPIO functionality through gpiolib. |
65 | 65 | ||
66 | config PINCTRL_AXP209 | ||
67 | tristate "X-Powers AXP209 PMIC pinctrl and GPIO Support" | ||
68 | depends on MFD_AXP20X | ||
69 | help | ||
70 | AXP PMICs provides multiple GPIOs that can be muxed for different | ||
71 | functions. This driver bundles a pinctrl driver to select the function | ||
72 | muxing and a GPIO driver to handle the GPIO when the GPIO function is | ||
73 | selected. | ||
74 | Say yes to enable pinctrl and GPIO support for the AXP209 PMIC | ||
75 | |||
66 | config PINCTRL_BF54x | 76 | config PINCTRL_BF54x |
67 | def_bool y if BF54x | 77 | def_bool y if BF54x |
68 | select PINCTRL_ADI2 | 78 | select PINCTRL_ADI2 |
diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile index d0d4844f8022..4777f1595ce2 100644 --- a/drivers/pinctrl/Makefile +++ b/drivers/pinctrl/Makefile | |||
@@ -11,6 +11,7 @@ obj-$(CONFIG_GENERIC_PINCONF) += pinconf-generic.o | |||
11 | obj-$(CONFIG_PINCTRL_ADI2) += pinctrl-adi2.o | 11 | obj-$(CONFIG_PINCTRL_ADI2) += pinctrl-adi2.o |
12 | obj-$(CONFIG_PINCTRL_ARTPEC6) += pinctrl-artpec6.o | 12 | obj-$(CONFIG_PINCTRL_ARTPEC6) += pinctrl-artpec6.o |
13 | obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o | 13 | obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o |
14 | obj-$(CONFIG_PINCTRL_AXP209) += pinctrl-axp209.o | ||
14 | obj-$(CONFIG_PINCTRL_BF54x) += pinctrl-adi2-bf54x.o | 15 | obj-$(CONFIG_PINCTRL_BF54x) += pinctrl-adi2-bf54x.o |
15 | obj-$(CONFIG_PINCTRL_BF60x) += pinctrl-adi2-bf60x.o | 16 | obj-$(CONFIG_PINCTRL_BF60x) += pinctrl-adi2-bf60x.o |
16 | obj-$(CONFIG_PINCTRL_AT91) += pinctrl-at91.o | 17 | obj-$(CONFIG_PINCTRL_AT91) += pinctrl-at91.o |
diff --git a/drivers/gpio/gpio-axp209.c b/drivers/pinctrl/pinctrl-axp209.c index 6ee7dc1418fa..6ee7dc1418fa 100644 --- a/drivers/gpio/gpio-axp209.c +++ b/drivers/pinctrl/pinctrl-axp209.c | |||