diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-03-05 08:50:37 -0500 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-03-15 07:01:54 -0400 |
commit | 571f0608e1a53d6d405c385cc9c11b7902b35b7f (patch) | |
tree | 07642ba4284f7287bdeb5b8abaaf987ed5fb9f1b /arch/m68k | |
parent | f317c71a2f3dcdae26055e6dd390d06c5efe5795 (diff) |
m68knommu: remove MBAR and IPSBAR hacks for the ColdFire 520x CPUs
The ColdFire 5207 and 5208 CPUs have fixed peripheral addresses.
They do not use the setable peripheral address registers like the MBAR
and IPSBAR used on many other ColdFire parts. Don't use fake values
of MBAR and IPSBAR when using peripheral addresses for them, there
is no need to.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/coldfire.h | 7 | ||||
-rw-r--r-- | arch/m68k/include/asm/m520xsim.h | 40 |
2 files changed, 24 insertions, 23 deletions
diff --git a/arch/m68k/include/asm/coldfire.h b/arch/m68k/include/asm/coldfire.h index 8daea2cf202e..c7dce7e55686 100644 --- a/arch/m68k/include/asm/coldfire.h +++ b/arch/m68k/include/asm/coldfire.h | |||
@@ -31,14 +31,9 @@ | |||
31 | * This is generally setup by the boards start up code. | 31 | * This is generally setup by the boards start up code. |
32 | */ | 32 | */ |
33 | #define MCF_MBAR 0x10000000 | 33 | #define MCF_MBAR 0x10000000 |
34 | #if defined(CONFIG_M520x) | ||
35 | #define MCF_IPSBAR 0xFC000000 | ||
36 | #else | ||
37 | #define MCF_IPSBAR 0x40000000 | 34 | #define MCF_IPSBAR 0x40000000 |
38 | #endif | ||
39 | 35 | ||
40 | #if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ | 36 | #if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) |
41 | defined(CONFIG_M520x) | ||
42 | #undef MCF_MBAR | 37 | #undef MCF_MBAR |
43 | #define MCF_MBAR MCF_IPSBAR | 38 | #define MCF_MBAR MCF_IPSBAR |
44 | #endif | 39 | #endif |
diff --git a/arch/m68k/include/asm/m520xsim.h b/arch/m68k/include/asm/m520xsim.h index afc21ad78f43..87f8ce73b318 100644 --- a/arch/m68k/include/asm/m520xsim.h +++ b/arch/m68k/include/asm/m520xsim.h | |||
@@ -19,7 +19,7 @@ | |||
19 | /* | 19 | /* |
20 | * Define the 520x SIM register set addresses. | 20 | * Define the 520x SIM register set addresses. |
21 | */ | 21 | */ |
22 | #define MCFICM_INTC0 0x48000 /* Base for Interrupt Ctrl 0 */ | 22 | #define MCFICM_INTC0 0xFC048000 /* Base for Interrupt Ctrl 0 */ |
23 | #define MCFINTC_IPRH 0x00 /* Interrupt pending 32-63 */ | 23 | #define MCFINTC_IPRH 0x00 /* Interrupt pending 32-63 */ |
24 | #define MCFINTC_IPRL 0x04 /* Interrupt pending 1-31 */ | 24 | #define MCFINTC_IPRL 0x04 /* Interrupt pending 1-31 */ |
25 | #define MCFINTC_IMRH 0x08 /* Interrupt mask 32-63 */ | 25 | #define MCFINTC_IMRH 0x08 /* Interrupt mask 32-63 */ |
@@ -35,9 +35,9 @@ | |||
35 | * address to the SIMR and CIMR registers (not offsets into IPSBAR). | 35 | * address to the SIMR and CIMR registers (not offsets into IPSBAR). |
36 | * The 520x family only has a single INTC unit. | 36 | * The 520x family only has a single INTC unit. |
37 | */ | 37 | */ |
38 | #define MCFINTC0_SIMR (MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_SIMR) | 38 | #define MCFINTC0_SIMR (MCFICM_INTC0 + MCFINTC_SIMR) |
39 | #define MCFINTC0_CIMR (MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_CIMR) | 39 | #define MCFINTC0_CIMR (MCFICM_INTC0 + MCFINTC_CIMR) |
40 | #define MCFINTC0_ICR0 (MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_ICR0) | 40 | #define MCFINTC0_ICR0 (MCFICM_INTC0 + MCFINTC_ICR0) |
41 | #define MCFINTC1_SIMR (0) | 41 | #define MCFINTC1_SIMR (0) |
42 | #define MCFINTC1_CIMR (0) | 42 | #define MCFINTC1_CIMR (0) |
43 | #define MCFINTC1_ICR0 (0) | 43 | #define MCFINTC1_ICR0 (0) |
@@ -52,12 +52,12 @@ | |||
52 | /* | 52 | /* |
53 | * SDRAM configuration registers. | 53 | * SDRAM configuration registers. |
54 | */ | 54 | */ |
55 | #define MCFSIM_SDMR 0x000a8000 /* SDRAM Mode/Extended Mode Register */ | 55 | #define MCFSIM_SDMR 0xFC0a8000 /* SDRAM Mode/Extended Mode Register */ |
56 | #define MCFSIM_SDCR 0x000a8004 /* SDRAM Control Register */ | 56 | #define MCFSIM_SDCR 0xFC0a8004 /* SDRAM Control Register */ |
57 | #define MCFSIM_SDCFG1 0x000a8008 /* SDRAM Configuration Register 1 */ | 57 | #define MCFSIM_SDCFG1 0xFC0a8008 /* SDRAM Configuration Register 1 */ |
58 | #define MCFSIM_SDCFG2 0x000a800c /* SDRAM Configuration Register 2 */ | 58 | #define MCFSIM_SDCFG2 0xFC0a800c /* SDRAM Configuration Register 2 */ |
59 | #define MCFSIM_SDCS0 0x000a8110 /* SDRAM Chip Select 0 Configuration */ | 59 | #define MCFSIM_SDCS0 0xFC0a8110 /* SDRAM Chip Select 0 Configuration */ |
60 | #define MCFSIM_SDCS1 0x000a8114 /* SDRAM Chip Select 1 Configuration */ | 60 | #define MCFSIM_SDCS1 0xFC0a8114 /* SDRAM Chip Select 1 Configuration */ |
61 | 61 | ||
62 | /* | 62 | /* |
63 | * EPORT and GPIO registers. | 63 | * EPORT and GPIO registers. |
@@ -119,10 +119,10 @@ | |||
119 | #define MCFGPIO_IRQ_MAX 8 | 119 | #define MCFGPIO_IRQ_MAX 8 |
120 | #define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE | 120 | #define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE |
121 | 121 | ||
122 | #define MCF_GPIO_PAR_UART (0xA4036) | 122 | #define MCF_GPIO_PAR_UART 0xFC0A4036 |
123 | #define MCF_GPIO_PAR_FECI2C (0xA4033) | 123 | #define MCF_GPIO_PAR_FECI2C 0xFC0A4033 |
124 | #define MCF_GPIO_PAR_QSPI (0xA4034) | 124 | #define MCF_GPIO_PAR_QSPI 0xFC0A4034 |
125 | #define MCF_GPIO_PAR_FEC (0xA4038) | 125 | #define MCF_GPIO_PAR_FEC 0xFC0A4038 |
126 | 126 | ||
127 | #define MCF_GPIO_PAR_UART_PAR_URXD0 (0x0001) | 127 | #define MCF_GPIO_PAR_UART_PAR_URXD0 (0x0001) |
128 | #define MCF_GPIO_PAR_UART_PAR_UTXD0 (0x0002) | 128 | #define MCF_GPIO_PAR_UART_PAR_UTXD0 (0x0002) |
@@ -142,9 +142,15 @@ | |||
142 | /* | 142 | /* |
143 | * UART module. | 143 | * UART module. |
144 | */ | 144 | */ |
145 | #define MCFUART_BASE1 0x60000 /* Base address of UART1 */ | 145 | #define MCFUART_BASE1 0xFC060000 /* Base address of UART1 */ |
146 | #define MCFUART_BASE2 0x64000 /* Base address of UART2 */ | 146 | #define MCFUART_BASE2 0xFC064000 /* Base address of UART2 */ |
147 | #define MCFUART_BASE3 0x68000 /* Base address of UART2 */ | 147 | #define MCFUART_BASE3 0xFC068000 /* Base address of UART2 */ |
148 | |||
149 | /* | ||
150 | * FEC module. | ||
151 | */ | ||
152 | #define MCFFEC_BASE 0xFC030000 /* Base of FEC ethernet */ | ||
153 | #define MCFFEC_SIZE 0x800 /* Register set size */ | ||
148 | 154 | ||
149 | /* | 155 | /* |
150 | * Reset Controll Unit. | 156 | * Reset Controll Unit. |