aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2011-11-16 03:22:59 -0500
committerLinus Walleij <linus.walleij@linaro.org>2012-01-03 03:10:03 -0500
commitca402d37dccf2b797440c5f03bd0db16f977acc9 (patch)
tree7dee0cb62c951122dea275a680da837ee81f69d0
parentdd68acc7cc256c928256eb5f53e163233605de5d (diff)
pinctrl: move the U300 GPIO driver to pinctrl
This driver will be converted to a dual GPIO + pinctrl driver since it supports biasing and driving control options. Hopefully it can serve as an example. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/arm/mach-u300/Kconfig2
-rw-r--r--arch/arm/mach-u300/include/mach/irqs.h2
-rw-r--r--drivers/gpio/Kconfig9
-rw-r--r--drivers/gpio/Makefile1
-rw-r--r--drivers/pinctrl/Kconfig9
-rw-r--r--drivers/pinctrl/Makefile1
-rw-r--r--drivers/pinctrl/pinctrl-coh901.c (renamed from drivers/gpio/gpio-u300.c)0
7 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-u300/Kconfig b/arch/arm/mach-u300/Kconfig
index 1cbcd4fc1e17..c2d5c6c08364 100644
--- a/arch/arm/mach-u300/Kconfig
+++ b/arch/arm/mach-u300/Kconfig
@@ -8,7 +8,7 @@ config MACH_U300
8 bool "U300" 8 bool "U300"
9 select PINCTRL 9 select PINCTRL
10 select PINMUX_U300 10 select PINMUX_U300
11 select GPIO_U300 11 select PINCTRL_COH901
12 12
13comment "ST-Ericsson U300/U330/U335/U365 Feature Selections" 13comment "ST-Ericsson U300/U330/U335/U365 Feature Selections"
14 14
diff --git a/arch/arm/mach-u300/include/mach/irqs.h b/arch/arm/mach-u300/include/mach/irqs.h
index db3fbfa1d6e9..ee78a26707eb 100644
--- a/arch/arm/mach-u300/include/mach/irqs.h
+++ b/arch/arm/mach-u300/include/mach/irqs.h
@@ -110,7 +110,7 @@
110#endif 110#endif
111 111
112/* Maximum 8*7 GPIO lines */ 112/* Maximum 8*7 GPIO lines */
113#ifdef CONFIG_GPIO_U300 113#ifdef CONFIG_PINCTRL_COH901
114#define IRQ_U300_GPIO_BASE (U300_VIC_IRQS_END) 114#define IRQ_U300_GPIO_BASE (U300_VIC_IRQS_END)
115#define IRQ_U300_GPIO_END (IRQ_U300_GPIO_BASE + 56) 115#define IRQ_U300_GPIO_END (IRQ_U300_GPIO_BASE + 56)
116#else 116#else
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 8482a23887dc..0f82aa8fa158 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -170,15 +170,6 @@ config GPIO_SCH
170 The Intel Tunnel Creek processor has 5 GPIOs powered by the 170 The Intel Tunnel Creek processor has 5 GPIOs powered by the
171 core power rail and 9 from suspend power supply. 171 core power rail and 9 from suspend power supply.
172 172
173config GPIO_U300
174 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
175 depends on GPIOLIB && ARCH_U300
176 help
177 Say yes here to support GPIO interface on ST-Ericsson U300.
178 The names of the two IP block variants supported are
179 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
180 ports of 8 GPIO pins each.
181
182config GPIO_VX855 173config GPIO_VX855
183 tristate "VIA VX855/VX875 GPIO" 174 tristate "VIA VX855/VX875 GPIO"
184 depends on PCI 175 depends on PCI
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
index dbcb0bcfd8da..7f20316fb156 100644
--- a/drivers/gpio/Makefile
+++ b/drivers/gpio/Makefile
@@ -54,7 +54,6 @@ obj-$(CONFIG_ARCH_DAVINCI_TNETV107X) += gpio-tnetv107x.o
54obj-$(CONFIG_GPIO_TPS65910) += gpio-tps65910.o 54obj-$(CONFIG_GPIO_TPS65910) += gpio-tps65910.o
55obj-$(CONFIG_GPIO_TPS65912) += gpio-tps65912.o 55obj-$(CONFIG_GPIO_TPS65912) += gpio-tps65912.o
56obj-$(CONFIG_GPIO_TWL4030) += gpio-twl4030.o 56obj-$(CONFIG_GPIO_TWL4030) += gpio-twl4030.o
57obj-$(CONFIG_MACH_U300) += gpio-u300.o
58obj-$(CONFIG_GPIO_UCB1400) += gpio-ucb1400.o 57obj-$(CONFIG_GPIO_UCB1400) += gpio-ucb1400.o
59obj-$(CONFIG_GPIO_VR41XX) += gpio-vr41xx.o 58obj-$(CONFIG_GPIO_VR41XX) += gpio-vr41xx.o
60obj-$(CONFIG_GPIO_VX855) += gpio-vx855.o 59obj-$(CONFIG_GPIO_VX855) += gpio-vx855.o
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index e17e2f8001d2..e087f0219f48 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -30,6 +30,15 @@ config PINMUX_U300
30 depends on ARCH_U300 30 depends on ARCH_U300
31 select PINMUX 31 select PINMUX
32 32
33config PINCTRL_COH901
34 bool "ST-Ericsson U300 COH 901 335/571 GPIO"
35 depends on GPIOLIB && ARCH_U300
36 help
37 Say yes here to support GPIO interface on ST-Ericsson U300.
38 The names of the two IP block variants supported are
39 COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
40 ports of 8 GPIO pins each.
41
33endmenu 42endmenu
34 43
35endif 44endif
diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile
index 50a2e2f6bc27..5f3e4d65465a 100644
--- a/drivers/pinctrl/Makefile
+++ b/drivers/pinctrl/Makefile
@@ -6,3 +6,4 @@ obj-$(CONFIG_PINCTRL) += core.o
6obj-$(CONFIG_PINMUX) += pinmux.o 6obj-$(CONFIG_PINMUX) += pinmux.o
7obj-$(CONFIG_PINMUX_SIRF) += pinmux-sirf.o 7obj-$(CONFIG_PINMUX_SIRF) += pinmux-sirf.o
8obj-$(CONFIG_PINMUX_U300) += pinmux-u300.o 8obj-$(CONFIG_PINMUX_U300) += pinmux-u300.o
9obj-$(CONFIG_PINCTRL_COH901) += pinctrl-coh901.o
diff --git a/drivers/gpio/gpio-u300.c b/drivers/pinctrl/pinctrl-coh901.c
index 4035778852b0..4035778852b0 100644
--- a/drivers/gpio/gpio-u300.c
+++ b/drivers/pinctrl/pinctrl-coh901.c