diff options
author | Greg Ungerer <gerg@uclinux.org> | 2012-04-17 00:25:20 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2012-05-20 07:21:56 -0400 |
commit | bb70e21b5268b9d7b591bef442c10b9d368eb93d (patch) | |
tree | eb68f927e5d24271e103f2c61da05a7d39df63b6 /arch/m68k | |
parent | 24d4502632d0f87ab356754f4915293fccaded5b (diff) |
m68knommu: simplify the ColdFire 532x 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/532x/Makefile | 2 | ||||
-rw-r--r-- | arch/m68k/platform/532x/config.c | 25 | ||||
-rw-r--r-- | arch/m68k/platform/532x/gpio.c | 43 |
3 files changed, 26 insertions, 44 deletions
diff --git a/arch/m68k/platform/532x/Makefile b/arch/m68k/platform/532x/Makefile index ce01669399c6..c0d8cf88f4fd 100644 --- a/arch/m68k/platform/532x/Makefile +++ b/arch/m68k/platform/532x/Makefile | |||
@@ -15,4 +15,4 @@ | |||
15 | asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 | 15 | asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 |
16 | 16 | ||
17 | #obj-y := config.o usb-mcf532x.o spi-mcf532x.o | 17 | #obj-y := config.o usb-mcf532x.o spi-mcf532x.o |
18 | obj-y := config.o gpio.o | 18 | obj-y := config.o |
diff --git a/arch/m68k/platform/532x/config.c b/arch/m68k/platform/532x/config.c index 37082d02f2bd..8e9476d59a65 100644 --- a/arch/m68k/platform/532x/config.c +++ b/arch/m68k/platform/532x/config.c | |||
@@ -26,10 +26,35 @@ | |||
26 | #include <asm/mcfsim.h> | 26 | #include <asm/mcfsim.h> |
27 | #include <asm/mcfuart.h> | 27 | #include <asm/mcfuart.h> |
28 | #include <asm/mcfdma.h> | 28 | #include <asm/mcfdma.h> |
29 | #include <asm/mcfgpio.h> | ||
29 | #include <asm/mcfwdebug.h> | 30 | #include <asm/mcfwdebug.h> |
30 | 31 | ||
31 | /***************************************************************************/ | 32 | /***************************************************************************/ |
32 | 33 | ||
34 | struct mcf_gpio_chip mcf_gpio_chips[] = { | ||
35 | MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR), | ||
36 | MCFGPF(FECH, 8, 8), | ||
37 | MCFGPF(FECL, 16, 8), | ||
38 | MCFGPF(SSI, 24, 5), | ||
39 | MCFGPF(BUSCTL, 32, 4), | ||
40 | MCFGPF(BE, 40, 4), | ||
41 | MCFGPF(CS, 49, 5), | ||
42 | MCFGPF(PWM, 58, 4), | ||
43 | MCFGPF(FECI2C, 64, 4), | ||
44 | MCFGPF(UART, 72, 8), | ||
45 | MCFGPF(QSPI, 80, 6), | ||
46 | MCFGPF(TIMER, 88, 4), | ||
47 | MCFGPF(LCDDATAH, 96, 2), | ||
48 | MCFGPF(LCDDATAM, 104, 8), | ||
49 | MCFGPF(LCDDATAL, 112, 8), | ||
50 | MCFGPF(LCDCTLH, 120, 1), | ||
51 | MCFGPF(LCDCTLL, 128, 8), | ||
52 | }; | ||
53 | |||
54 | unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips); | ||
55 | |||
56 | /***************************************************************************/ | ||
57 | |||
33 | #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) | 58 | #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) |
34 | 59 | ||
35 | static void __init m532x_qspi_init(void) | 60 | static void __init m532x_qspi_init(void) |
diff --git a/arch/m68k/platform/532x/gpio.c b/arch/m68k/platform/532x/gpio.c deleted file mode 100644 index 3e1b71dc7042..000000000000 --- a/arch/m68k/platform/532x/gpio.c +++ /dev/null | |||
@@ -1,43 +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(FECH, 8, 8), | ||
26 | MCFGPF(FECL, 16, 8), | ||
27 | MCFGPF(SSI, 24, 5), | ||
28 | MCFGPF(BUSCTL, 32, 4), | ||
29 | MCFGPF(BE, 40, 4), | ||
30 | MCFGPF(CS, 49, 5), | ||
31 | MCFGPF(PWM, 58, 4), | ||
32 | MCFGPF(FECI2C, 64, 4), | ||
33 | MCFGPF(UART, 72, 8), | ||
34 | MCFGPF(QSPI, 80, 6), | ||
35 | MCFGPF(TIMER, 88, 4), | ||
36 | MCFGPF(LCDDATAH, 96, 2), | ||
37 | MCFGPF(LCDDATAM, 104, 8), | ||
38 | MCFGPF(LCDDATAL, 112, 8), | ||
39 | MCFGPF(LCDCTLH, 120, 1), | ||
40 | MCFGPF(LCDCTLL, 128, 8), | ||
41 | }; | ||
42 | |||
43 | unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips); | ||