diff options
author | Greg Ungerer <gerg@uclinux.org> | 2012-04-17 00:14:51 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2012-05-20 07:21:49 -0400 |
commit | a10cf320d84ab2df0b7c12ace86b0620cfadabb1 (patch) | |
tree | f2dc59df20750206ca62f0df825733ff9e1a080e /arch/m68k | |
parent | a75250b3d5c5e5f76620962b45e971370f1b8ad8 (diff) |
m68knommu: simplify the ColdFire 520x GPIO struct setup
The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Steven King <sfking@fdwdc.com>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/platform/520x/Makefile | 2 | ||||
-rw-r--r-- | arch/m68k/platform/520x/config.c | 16 | ||||
-rw-r--r-- | arch/m68k/platform/520x/gpio.c | 34 |
3 files changed, 17 insertions, 35 deletions
diff --git a/arch/m68k/platform/520x/Makefile b/arch/m68k/platform/520x/Makefile index ad3f4e5a57ce..03e29d134763 100644 --- a/arch/m68k/platform/520x/Makefile +++ b/arch/m68k/platform/520x/Makefile | |||
@@ -14,4 +14,4 @@ | |||
14 | 14 | ||
15 | asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 | 15 | asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 |
16 | 16 | ||
17 | obj-y := config.o gpio.o | 17 | obj-y := config.o |
diff --git a/arch/m68k/platform/520x/config.c b/arch/m68k/platform/520x/config.c index 09df4b89e8be..3264b8883d5f 100644 --- a/arch/m68k/platform/520x/config.c +++ b/arch/m68k/platform/520x/config.c | |||
@@ -19,6 +19,22 @@ | |||
19 | #include <asm/coldfire.h> | 19 | #include <asm/coldfire.h> |
20 | #include <asm/mcfsim.h> | 20 | #include <asm/mcfsim.h> |
21 | #include <asm/mcfuart.h> | 21 | #include <asm/mcfuart.h> |
22 | #include <asm/mcfgpio.h> | ||
23 | |||
24 | /***************************************************************************/ | ||
25 | |||
26 | struct mcf_gpio_chip mcf_gpio_chips[] = { | ||
27 | MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR), | ||
28 | MCFGPF(CS, 9, 3), | ||
29 | MCFGPF(FECI2C, 16, 4), | ||
30 | MCFGPF(QSPI, 24, 4), | ||
31 | MCFGPF(TIMER, 32, 4), | ||
32 | MCFGPF(UART, 40, 8), | ||
33 | MCFGPF(FECH, 48, 8), | ||
34 | MCFGPF(FECL, 56, 8), | ||
35 | }; | ||
36 | |||
37 | unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips); | ||
22 | 38 | ||
23 | /***************************************************************************/ | 39 | /***************************************************************************/ |
24 | 40 | ||
diff --git a/arch/m68k/platform/520x/gpio.c b/arch/m68k/platform/520x/gpio.c deleted file mode 100644 index 49387c34f0c4..000000000000 --- a/arch/m68k/platform/520x/gpio.c +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | /* | ||
2 | * Coldfire generic GPIO support | ||
3 | * | ||
4 | * (C) Copyright 2009, Steven King <sfking@fdwdc.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | */ | ||
15 | |||
16 | #include <linux/kernel.h> | ||
17 | #include <linux/init.h> | ||
18 | |||
19 | #include <asm/coldfire.h> | ||
20 | #include <asm/mcfsim.h> | ||
21 | #include <asm/mcfgpio.h> | ||
22 | |||
23 | struct mcf_gpio_chip mcf_gpio_chips[] = { | ||
24 | MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR), | ||
25 | MCFGPF(CS, 9, 3), | ||
26 | MCFGPF(FECI2C, 16, 4), | ||
27 | MCFGPF(QSPI, 24, 4), | ||
28 | MCFGPF(TIMER, 32, 4), | ||
29 | MCFGPF(UART, 40, 8), | ||
30 | MCFGPF(FECH, 48, 8), | ||
31 | MCFGPF(FECL, 56, 8), | ||
32 | }; | ||
33 | |||
34 | unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips); | ||