Skip to content

Commit

Permalink
m68knommu: simplify the ColdFire 523x GPIO struct setup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed May 20, 2012
1 parent a10cf32 commit 045f8c4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 41 deletions.
2 changes: 1 addition & 1 deletion arch/m68k/platform/523x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1

obj-y := config.o gpio.o
obj-y := config.o
22 changes: 22 additions & 0 deletions arch/m68k/platform/523x/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,28 @@
#include <asm/machdep.h>
#include <asm/coldfire.h>
#include <asm/mcfsim.h>
#include <asm/mcfgpio.h>

/***************************************************************************/

struct mcf_gpio_chip mcf_gpio_chips[] = {
MCFGPS(PIRQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
MCFGPF(ADDR, 13, 3),
MCFGPF(DATAH, 16, 8),
MCFGPF(DATAL, 24, 8),
MCFGPF(BUSCTL, 32, 8),
MCFGPF(BS, 40, 4),
MCFGPF(CS, 49, 7),
MCFGPF(SDRAM, 56, 6),
MCFGPF(FECI2C, 64, 4),
MCFGPF(UARTH, 72, 2),
MCFGPF(UARTL, 80, 8),
MCFGPF(QSPI, 88, 5),
MCFGPF(TIMER, 96, 8),
MCFGPF(ETPU, 104, 3),
};

unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);

/***************************************************************************/

Expand Down
40 changes: 0 additions & 40 deletions arch/m68k/platform/523x/gpio.c

This file was deleted.

0 comments on commit 045f8c4

Please sign in to comment.