diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-03-05 09:13:17 -0500 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-03-15 07:01:54 -0400 |
commit | 9a6b0c73afa702eee1803e664eae1b951faf895c (patch) | |
tree | 854f1d2df6e034d4c2569dd565f5a3ed2af2e141 /arch | |
parent | b62384afddbe7173b08420c67e6cbb22aa1ba709 (diff) |
m68knommu: remove use of MBAR value for ColdFire 527x peripheral addressing
The ColdFire 527x family of CPUs does not have an MBAR register, so don't
define its peripheral addresses relative to one. Its internal peripherals
are relative to the IPSBAR register, so make sure to use that.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/include/asm/m527xsim.h | 14 | ||||
-rw-r--r-- | arch/m68knommu/platform/527x/config.c | 14 |
2 files changed, 18 insertions, 10 deletions
diff --git a/arch/m68k/include/asm/m527xsim.h b/arch/m68k/include/asm/m527xsim.h index cb7df04ad0c4..d299552ab5b0 100644 --- a/arch/m68k/include/asm/m527xsim.h +++ b/arch/m68k/include/asm/m527xsim.h | |||
@@ -63,9 +63,17 @@ | |||
63 | /* | 63 | /* |
64 | * UART module. | 64 | * UART module. |
65 | */ | 65 | */ |
66 | #define MCFUART_BASE1 0x200 /* Base address of UART1 */ | 66 | #define MCFUART_BASE1 (MCF_IPSBAR + 0x200) |
67 | #define MCFUART_BASE2 0x240 /* Base address of UART2 */ | 67 | #define MCFUART_BASE2 (MCF_IPSBAR + 0x240) |
68 | #define MCFUART_BASE3 0x280 /* Base address of UART3 */ | 68 | #define MCFUART_BASE3 (MCF_IPSBAR + 0x280) |
69 | |||
70 | /* | ||
71 | * FEC ethernet module. | ||
72 | */ | ||
73 | #define MCFFEC_BASE0 (MCF_IPSBAR + 0x1000) | ||
74 | #define MCFFEC_SIZE0 0x800 | ||
75 | #define MCFFEC_BASE1 (MCF_IPSBAR + 0x1800) | ||
76 | #define MCFFEC_SIZE1 0x800 | ||
69 | 77 | ||
70 | #ifdef CONFIG_M5271 | 78 | #ifdef CONFIG_M5271 |
71 | #define MCFGPIO_PODR_ADDR (MCF_IPSBAR + 0x100000) | 79 | #define MCFGPIO_PODR_ADDR (MCF_IPSBAR + 0x100000) |
diff --git a/arch/m68knommu/platform/527x/config.c b/arch/m68knommu/platform/527x/config.c index 3d9c35c98b98..fa359593b613 100644 --- a/arch/m68knommu/platform/527x/config.c +++ b/arch/m68knommu/platform/527x/config.c | |||
@@ -28,15 +28,15 @@ | |||
28 | 28 | ||
29 | static struct mcf_platform_uart m527x_uart_platform[] = { | 29 | static struct mcf_platform_uart m527x_uart_platform[] = { |
30 | { | 30 | { |
31 | .mapbase = MCF_MBAR + MCFUART_BASE1, | 31 | .mapbase = MCFUART_BASE1, |
32 | .irq = MCFINT_VECBASE + MCFINT_UART0, | 32 | .irq = MCFINT_VECBASE + MCFINT_UART0, |
33 | }, | 33 | }, |
34 | { | 34 | { |
35 | .mapbase = MCF_MBAR + MCFUART_BASE2, | 35 | .mapbase = MCFUART_BASE2, |
36 | .irq = MCFINT_VECBASE + MCFINT_UART1, | 36 | .irq = MCFINT_VECBASE + MCFINT_UART1, |
37 | }, | 37 | }, |
38 | { | 38 | { |
39 | .mapbase = MCF_MBAR + MCFUART_BASE3, | 39 | .mapbase = MCFUART_BASE3, |
40 | .irq = MCFINT_VECBASE + MCFINT_UART2, | 40 | .irq = MCFINT_VECBASE + MCFINT_UART2, |
41 | }, | 41 | }, |
42 | { }, | 42 | { }, |
@@ -50,8 +50,8 @@ static struct platform_device m527x_uart = { | |||
50 | 50 | ||
51 | static struct resource m527x_fec0_resources[] = { | 51 | static struct resource m527x_fec0_resources[] = { |
52 | { | 52 | { |
53 | .start = MCF_MBAR + 0x1000, | 53 | .start = MCFFEC_BASE0, |
54 | .end = MCF_MBAR + 0x1000 + 0x7ff, | 54 | .end = MCFFEC_BASE0 + MCFFEC_SIZE0 - 1, |
55 | .flags = IORESOURCE_MEM, | 55 | .flags = IORESOURCE_MEM, |
56 | }, | 56 | }, |
57 | { | 57 | { |
@@ -73,8 +73,8 @@ static struct resource m527x_fec0_resources[] = { | |||
73 | 73 | ||
74 | static struct resource m527x_fec1_resources[] = { | 74 | static struct resource m527x_fec1_resources[] = { |
75 | { | 75 | { |
76 | .start = MCF_MBAR + 0x1800, | 76 | .start = MCFFEC_BASE1, |
77 | .end = MCF_MBAR + 0x1800 + 0x7ff, | 77 | .end = MCFFEC_BASE1 + MCFFEC_SIZE1 - 1, |
78 | .flags = IORESOURCE_MEM, | 78 | .flags = IORESOURCE_MEM, |
79 | }, | 79 | }, |
80 | { | 80 | { |