aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/platform
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2011-12-23 21:42:30 -0500
committerGreg Ungerer <gerg@uclinux.org>2012-03-04 18:43:09 -0500
commit3b2039b26619745a736b896caf8df05a2a15df3a (patch)
tree2a60f2a6fb175f453b7f7f0858732ce52ae87b06 /arch/m68k/platform
parent6c84a60eb98911cb376cf0a340f811401f3b29a4 (diff)
m68knommu: make 528x QSPI platform addressing consistent
If we make all QSPI (SPI protocol) addressing consistent across all ColdFire family members then we will be able to remove the duplicated plaform data and code and use a single setup for all. So modify the ColdFire 528x QSPI addressing so that: . base addresses are absolute (not relative to MBAR peripheral register) . use a common name for IRQs used . move chip select definitions (CS) to appropriate header Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/platform')
-rw-r--r--arch/m68k/platform/528x/config.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/m68k/platform/528x/config.c b/arch/m68k/platform/528x/config.c
index 3e015dc00c8e..24f5afcf0082 100644
--- a/arch/m68k/platform/528x/config.c
+++ b/arch/m68k/platform/528x/config.c
@@ -30,22 +30,17 @@
30#if defined(CONFIG_SPI_COLDFIRE_QSPI) || defined(CONFIG_SPI_COLDFIRE_QSPI_MODULE) 30#if defined(CONFIG_SPI_COLDFIRE_QSPI) || defined(CONFIG_SPI_COLDFIRE_QSPI_MODULE)
31static struct resource m528x_qspi_resources[] = { 31static struct resource m528x_qspi_resources[] = {
32 { 32 {
33 .start = MCFQSPI_IOBASE, 33 .start = MCFQSPI_BASE,
34 .end = MCFQSPI_IOBASE + MCFQSPI_IOSIZE - 1, 34 .end = MCFQSPI_BASE + MCFQSPI_SIZE - 1,
35 .flags = IORESOURCE_MEM, 35 .flags = IORESOURCE_MEM,
36 }, 36 },
37 { 37 {
38 .start = MCFINT_VECBASE + MCFINT_QSPI, 38 .start = MCF_IRQ_QSPI,
39 .end = MCFINT_VECBASE + MCFINT_QSPI, 39 .end = MCF_IRQ_QSPI,
40 .flags = IORESOURCE_IRQ, 40 .flags = IORESOURCE_IRQ,
41 }, 41 },
42}; 42};
43 43
44#define MCFQSPI_CS0 147
45#define MCFQSPI_CS1 148
46#define MCFQSPI_CS2 149
47#define MCFQSPI_CS3 150
48
49static int m528x_cs_setup(struct mcfqspi_cs_control *cs_control) 44static int m528x_cs_setup(struct mcfqspi_cs_control *cs_control)
50{ 45{
51 int status; 46 int status;