diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2011-09-21 06:49:20 -0400 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-09-22 18:14:15 -0400 |
commit | c68308dd50c3827a4ce77a1d70e0eb2d2521cafd (patch) | |
tree | da838e0c576ebbf7583ee485c7366b6380b13663 /arch/powerpc/platforms | |
parent | 40dc7e8b4ac5cdfcf13e3d80b71240f90ceb1f5b (diff) |
gpio: move mpc8xxx/512x gpio driver to drivers/gpio
Move the driver to the place where it is expected to be nowadays. Also
rename its CONFIG-name to match the rest and adapt the defconfigs.
Finally, move selection of REQUIRE_GPIOLIB or WANTS_OPTIONAL_GPIOLIB to
the platforms, because this option is per-platform and not per-driver.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/512x/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/Kconfig | 9 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/Kconfig | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/Kconfig | 10 |
5 files changed, 16 insertions, 17 deletions
diff --git a/arch/powerpc/platforms/512x/Kconfig b/arch/powerpc/platforms/512x/Kconfig index 27b0651221d1..b3ebce1aec07 100644 --- a/arch/powerpc/platforms/512x/Kconfig +++ b/arch/powerpc/platforms/512x/Kconfig | |||
@@ -6,6 +6,7 @@ config PPC_MPC512x | |||
6 | select PPC_CLOCK | 6 | select PPC_CLOCK |
7 | select PPC_PCI_CHOICE | 7 | select PPC_PCI_CHOICE |
8 | select FSL_PCI if PCI | 8 | select FSL_PCI if PCI |
9 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
9 | 10 | ||
10 | config MPC5121_ADS | 11 | config MPC5121_ADS |
11 | bool "Freescale MPC5121E ADS" | 12 | bool "Freescale MPC5121E ADS" |
diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig index 73f4135f3a1a..670a033264c0 100644 --- a/arch/powerpc/platforms/83xx/Kconfig +++ b/arch/powerpc/platforms/83xx/Kconfig | |||
@@ -114,18 +114,21 @@ config KMETER1 | |||
114 | 114 | ||
115 | endif | 115 | endif |
116 | 116 | ||
117 | # used for usb | 117 | # used for usb & gpio |
118 | config PPC_MPC831x | 118 | config PPC_MPC831x |
119 | bool | 119 | bool |
120 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
120 | 121 | ||
121 | # used for math-emu | 122 | # used for math-emu |
122 | config PPC_MPC832x | 123 | config PPC_MPC832x |
123 | bool | 124 | bool |
124 | 125 | ||
125 | # used for usb | 126 | # used for usb & gpio |
126 | config PPC_MPC834x | 127 | config PPC_MPC834x |
127 | bool | 128 | bool |
129 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
128 | 130 | ||
129 | # used for usb | 131 | # used for usb & gpio |
130 | config PPC_MPC837x | 132 | config PPC_MPC837x |
131 | bool | 133 | bool |
134 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig index 498534cd5265..1b393f40c639 100644 --- a/arch/powerpc/platforms/85xx/Kconfig +++ b/arch/powerpc/platforms/85xx/Kconfig | |||
@@ -177,7 +177,8 @@ config P2040_RDB | |||
177 | select PPC_E500MC | 177 | select PPC_E500MC |
178 | select PHYS_64BIT | 178 | select PHYS_64BIT |
179 | select SWIOTLB | 179 | select SWIOTLB |
180 | select MPC8xxx_GPIO | 180 | select ARCH_REQUIRE_GPIOLIB |
181 | select GPIO_MPC8XXX | ||
181 | select HAS_RAPIDIO | 182 | select HAS_RAPIDIO |
182 | select PPC_EPAPR_HV_PIC | 183 | select PPC_EPAPR_HV_PIC |
183 | help | 184 | help |
@@ -189,7 +190,8 @@ config P3041_DS | |||
189 | select PPC_E500MC | 190 | select PPC_E500MC |
190 | select PHYS_64BIT | 191 | select PHYS_64BIT |
191 | select SWIOTLB | 192 | select SWIOTLB |
192 | select MPC8xxx_GPIO | 193 | select ARCH_REQUIRE_GPIOLIB |
194 | select GPIO_MPC8XXX | ||
193 | select HAS_RAPIDIO | 195 | select HAS_RAPIDIO |
194 | select PPC_EPAPR_HV_PIC | 196 | select PPC_EPAPR_HV_PIC |
195 | help | 197 | help |
@@ -201,7 +203,8 @@ config P4080_DS | |||
201 | select PPC_E500MC | 203 | select PPC_E500MC |
202 | select PHYS_64BIT | 204 | select PHYS_64BIT |
203 | select SWIOTLB | 205 | select SWIOTLB |
204 | select MPC8xxx_GPIO | 206 | select ARCH_REQUIRE_GPIOLIB |
207 | select GPIO_MPC8XXX | ||
205 | select HAS_RAPIDIO | 208 | select HAS_RAPIDIO |
206 | select PPC_EPAPR_HV_PIC | 209 | select PPC_EPAPR_HV_PIC |
207 | help | 210 | help |
@@ -216,7 +219,8 @@ config P5020_DS | |||
216 | select PPC_E500MC | 219 | select PPC_E500MC |
217 | select PHYS_64BIT | 220 | select PHYS_64BIT |
218 | select SWIOTLB | 221 | select SWIOTLB |
219 | select MPC8xxx_GPIO | 222 | select ARCH_REQUIRE_GPIOLIB |
223 | select GPIO_MPC8XXX | ||
220 | select HAS_RAPIDIO | 224 | select HAS_RAPIDIO |
221 | select PPC_EPAPR_HV_PIC | 225 | select PPC_EPAPR_HV_PIC |
222 | help | 226 | help |
diff --git a/arch/powerpc/platforms/86xx/Kconfig b/arch/powerpc/platforms/86xx/Kconfig index a0b5638c5dc8..8d6599d54ea6 100644 --- a/arch/powerpc/platforms/86xx/Kconfig +++ b/arch/powerpc/platforms/86xx/Kconfig | |||
@@ -4,6 +4,7 @@ menuconfig PPC_86xx | |||
4 | depends on 6xx | 4 | depends on 6xx |
5 | select FSL_SOC | 5 | select FSL_SOC |
6 | select ALTIVEC | 6 | select ALTIVEC |
7 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
7 | help | 8 | help |
8 | The Freescale E600 SoCs have 74xx cores. | 9 | The Freescale E600 SoCs have 74xx cores. |
9 | 10 | ||
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig index 6de27d275728..9fdb9b6ab371 100644 --- a/arch/powerpc/platforms/Kconfig +++ b/arch/powerpc/platforms/Kconfig | |||
@@ -334,16 +334,6 @@ config OF_RTC | |||
334 | 334 | ||
335 | source "arch/powerpc/sysdev/bestcomm/Kconfig" | 335 | source "arch/powerpc/sysdev/bestcomm/Kconfig" |
336 | 336 | ||
337 | config MPC8xxx_GPIO | ||
338 | bool "MPC512x/MPC8xxx GPIO support" | ||
339 | depends on PPC_MPC512x || PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || \ | ||
340 | FSL_SOC_BOOKE || PPC_86xx | ||
341 | select GENERIC_GPIO | ||
342 | select ARCH_REQUIRE_GPIOLIB | ||
343 | help | ||
344 | Say Y here if you're going to use hardware that connects to the | ||
345 | MPC512x/831x/834x/837x/8572/8610 GPIOs. | ||
346 | |||
347 | config SIMPLE_GPIO | 337 | config SIMPLE_GPIO |
348 | bool "Support for simple, memory-mapped GPIO controllers" | 338 | bool "Support for simple, memory-mapped GPIO controllers" |
349 | depends on PPC | 339 | depends on PPC |