diff options
-rw-r--r-- | arch/powerpc/platforms/52xx/Kconfig | 8 | ||||
-rw-r--r-- | arch/powerpc/platforms/52xx/Makefile | 1 | ||||
-rw-r--r-- | drivers/gpio/Kconfig | 4 | ||||
-rw-r--r-- | drivers/gpio/Makefile | 1 | ||||
-rw-r--r-- | drivers/gpio/gpio-mpc5200.c (renamed from arch/powerpc/platforms/52xx/mpc52xx_gpio.c) | 12 |
5 files changed, 9 insertions, 17 deletions
diff --git a/arch/powerpc/platforms/52xx/Kconfig b/arch/powerpc/platforms/52xx/Kconfig index 47ea1be1481b..90f4496017e4 100644 --- a/arch/powerpc/platforms/52xx/Kconfig +++ b/arch/powerpc/platforms/52xx/Kconfig | |||
@@ -55,14 +55,6 @@ config PPC_MPC5200_BUGFIX | |||
55 | 55 | ||
56 | It is safe to say 'Y' here | 56 | It is safe to say 'Y' here |
57 | 57 | ||
58 | config PPC_MPC5200_GPIO | ||
59 | bool "MPC5200 GPIO support" | ||
60 | depends on PPC_MPC52xx | ||
61 | select ARCH_REQUIRE_GPIOLIB | ||
62 | select GENERIC_GPIO | ||
63 | help | ||
64 | Enable gpiolib support for mpc5200 based boards | ||
65 | |||
66 | config PPC_MPC5200_LPBFIFO | 58 | config PPC_MPC5200_LPBFIFO |
67 | tristate "MPC5200 LocalPlus bus FIFO driver" | 59 | tristate "MPC5200 LocalPlus bus FIFO driver" |
68 | depends on PPC_MPC52xx | 60 | depends on PPC_MPC52xx |
diff --git a/arch/powerpc/platforms/52xx/Makefile b/arch/powerpc/platforms/52xx/Makefile index 2bc8cd0c5cfc..4e62486791e9 100644 --- a/arch/powerpc/platforms/52xx/Makefile +++ b/arch/powerpc/platforms/52xx/Makefile | |||
@@ -14,5 +14,4 @@ ifeq ($(CONFIG_PPC_LITE5200),y) | |||
14 | obj-$(CONFIG_PM) += lite5200_sleep.o lite5200_pm.o | 14 | obj-$(CONFIG_PM) += lite5200_sleep.o lite5200_pm.o |
15 | endif | 15 | endif |
16 | 16 | ||
17 | obj-$(CONFIG_PPC_MPC5200_GPIO) += mpc52xx_gpio.o | ||
18 | obj-$(CONFIG_PPC_MPC5200_LPBFIFO) += mpc52xx_lpbfifo.o | 17 | obj-$(CONFIG_PPC_MPC5200_LPBFIFO) += mpc52xx_lpbfifo.o |
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index a4ac78b6a0f8..47eae6ea5dd2 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -99,6 +99,10 @@ config GPIO_EXYNOS4 | |||
99 | def_bool y | 99 | def_bool y |
100 | depends on CPU_EXYNOS4210 | 100 | depends on CPU_EXYNOS4210 |
101 | 101 | ||
102 | config GPIO_MPC5200 | ||
103 | def_bool y | ||
104 | depends on PPC_MPC52xx | ||
105 | |||
102 | config GPIO_MXC | 106 | config GPIO_MXC |
103 | def_bool y | 107 | def_bool y |
104 | depends on ARCH_MXC | 108 | depends on ARCH_MXC |
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index b847fb5b847c..720711251391 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile | |||
@@ -26,6 +26,7 @@ obj-$(CONFIG_GPIO_MAX732X) += gpio-max732x.o | |||
26 | obj-$(CONFIG_GPIO_MC33880) += gpio-mc33880.o | 26 | obj-$(CONFIG_GPIO_MC33880) += gpio-mc33880.o |
27 | obj-$(CONFIG_GPIO_MCP23S08) += gpio-mcp23s08.o | 27 | obj-$(CONFIG_GPIO_MCP23S08) += gpio-mcp23s08.o |
28 | obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o | 28 | obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o |
29 | obj-$(CONFIG_GPIO_MPC5200) += gpio-mpc5200.o | ||
29 | obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o | 30 | obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o |
30 | obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o | 31 | obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o |
31 | obj-$(CONFIG_PLAT_NOMADIK) += gpio-nomadik.o | 32 | obj-$(CONFIG_PLAT_NOMADIK) += gpio-nomadik.o |
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_gpio.c b/drivers/gpio/gpio-mpc5200.c index 1757d1db4b51..52d3ed208105 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_gpio.c +++ b/drivers/gpio/gpio-mpc5200.c | |||
@@ -184,15 +184,13 @@ static int mpc52xx_gpiochip_remove(struct platform_device *ofdev) | |||
184 | } | 184 | } |
185 | 185 | ||
186 | static const struct of_device_id mpc52xx_wkup_gpiochip_match[] = { | 186 | static const struct of_device_id mpc52xx_wkup_gpiochip_match[] = { |
187 | { | 187 | { .compatible = "fsl,mpc5200-gpio-wkup", }, |
188 | .compatible = "fsl,mpc5200-gpio-wkup", | ||
189 | }, | ||
190 | {} | 188 | {} |
191 | }; | 189 | }; |
192 | 190 | ||
193 | static struct platform_driver mpc52xx_wkup_gpiochip_driver = { | 191 | static struct platform_driver mpc52xx_wkup_gpiochip_driver = { |
194 | .driver = { | 192 | .driver = { |
195 | .name = "gpio_wkup", | 193 | .name = "mpc5200-gpio-wkup", |
196 | .owner = THIS_MODULE, | 194 | .owner = THIS_MODULE, |
197 | .of_match_table = mpc52xx_wkup_gpiochip_match, | 195 | .of_match_table = mpc52xx_wkup_gpiochip_match, |
198 | }, | 196 | }, |
@@ -341,15 +339,13 @@ static int __devinit mpc52xx_simple_gpiochip_probe(struct platform_device *ofdev | |||
341 | } | 339 | } |
342 | 340 | ||
343 | static const struct of_device_id mpc52xx_simple_gpiochip_match[] = { | 341 | static const struct of_device_id mpc52xx_simple_gpiochip_match[] = { |
344 | { | 342 | { .compatible = "fsl,mpc5200-gpio", }, |
345 | .compatible = "fsl,mpc5200-gpio", | ||
346 | }, | ||
347 | {} | 343 | {} |
348 | }; | 344 | }; |
349 | 345 | ||
350 | static struct platform_driver mpc52xx_simple_gpiochip_driver = { | 346 | static struct platform_driver mpc52xx_simple_gpiochip_driver = { |
351 | .driver = { | 347 | .driver = { |
352 | .name = "gpio", | 348 | .name = "mpc5200-gpio", |
353 | .owner = THIS_MODULE, | 349 | .owner = THIS_MODULE, |
354 | .of_match_table = mpc52xx_simple_gpiochip_match, | 350 | .of_match_table = mpc52xx_simple_gpiochip_match, |
355 | }, | 351 | }, |