diff options
author | Jiri Olsa <olsajiri@gmail.com> | 2008-02-05 01:29:58 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:21 -0500 |
commit | c155f3f9c54c602823c3970ec8a465ec3f9c2017 (patch) | |
tree | c747e5e5c90f8705bcddcdb22a0bb90452d0e891 | |
parent | 16791963ff7dd6a108251f5fa4b273cf1ffe531f (diff) |
m68knomu: remove dead config symbols from m68knomu code
remove dead config symbols from m68knommu code
Signed-off-by: Jiri Olsa <olsajiri@gmail.com>
Acked-by: Greg Ungerer <gerg@snapgear.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/m68knommu/kernel/setup.c | 3 | ||||
-rw-r--r-- | include/asm-m68knommu/mcfne.h | 27 | ||||
-rw-r--r-- | include/asm-m68knommu/mcfsim.h | 4 | ||||
-rw-r--r-- | include/asm-m68knommu/mcftimer.h | 2 | ||||
-rw-r--r-- | include/asm-m68knommu/mcfuart.h | 2 | ||||
-rw-r--r-- | include/asm-m68knommu/system.h | 17 |
6 files changed, 3 insertions, 52 deletions
diff --git a/arch/m68knommu/kernel/setup.c b/arch/m68knommu/kernel/setup.c index 332345d7675d..81507c53d4a9 100644 --- a/arch/m68knommu/kernel/setup.c +++ b/arch/m68knommu/kernel/setup.c | |||
@@ -64,9 +64,6 @@ void (*mach_power_off)(void); | |||
64 | #ifdef CONFIG_M68VZ328 | 64 | #ifdef CONFIG_M68VZ328 |
65 | #define CPU "MC68VZ328" | 65 | #define CPU "MC68VZ328" |
66 | #endif | 66 | #endif |
67 | #ifdef CONFIG_M68332 | ||
68 | #define CPU "MC68332" | ||
69 | #endif | ||
70 | #ifdef CONFIG_M68360 | 67 | #ifdef CONFIG_M68360 |
71 | #define CPU "MC68360" | 68 | #define CPU "MC68360" |
72 | #endif | 69 | #endif |
diff --git a/include/asm-m68knommu/mcfne.h b/include/asm-m68knommu/mcfne.h index c920ccdb61fe..431f63aadd0e 100644 --- a/include/asm-m68knommu/mcfne.h +++ b/include/asm-m68knommu/mcfne.h | |||
@@ -60,17 +60,6 @@ | |||
60 | #define NE2000_BYTE volatile unsigned char | 60 | #define NE2000_BYTE volatile unsigned char |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #if defined(CONFIG_CFV240) | ||
64 | #define NE2000_ADDR 0x40010000 | ||
65 | #define NE2000_ADDR1 0x40010001 | ||
66 | #define NE2000_ODDOFFSET 0x00000000 | ||
67 | #define NE2000_IRQ 1 | ||
68 | #define NE2000_IRQ_VECTOR 0x19 | ||
69 | #define NE2000_IRQ_PRIORITY 2 | ||
70 | #define NE2000_IRQ_LEVEL 1 | ||
71 | #define NE2000_BYTE volatile unsigned char | ||
72 | #endif | ||
73 | |||
74 | #if defined(CONFIG_M5307C3) | 63 | #if defined(CONFIG_M5307C3) |
75 | #define NE2000_ADDR 0x40000300 | 64 | #define NE2000_ADDR 0x40000300 |
76 | #define NE2000_ODDOFFSET 0x00010000 | 65 | #define NE2000_ODDOFFSET 0x00010000 |
@@ -173,13 +162,8 @@ void ne2000_outsw(unsigned int addr, void *vbuf, unsigned long len); | |||
173 | * On most NE2000 implementations on ColdFire boards the chip is | 162 | * On most NE2000 implementations on ColdFire boards the chip is |
174 | * mapped in kinda funny, due to its ISA heritage. | 163 | * mapped in kinda funny, due to its ISA heritage. |
175 | */ | 164 | */ |
176 | #ifdef CONFIG_CFV240 | ||
177 | #define NE2000_PTR(addr) (NE2000_ADDR + ((addr & 0x3f) << 1) + 1) | ||
178 | #define NE2000_DATA_PTR(addr) (NE2000_ADDR + ((addr & 0x3f) << 1)) | ||
179 | #else | ||
180 | #define NE2000_PTR(addr) ((addr&0x1)?(NE2000_ODDOFFSET+addr-1):(addr)) | 165 | #define NE2000_PTR(addr) ((addr&0x1)?(NE2000_ODDOFFSET+addr-1):(addr)) |
181 | #define NE2000_DATA_PTR(addr) (addr) | 166 | #define NE2000_DATA_PTR(addr) (addr) |
182 | #endif | ||
183 | 167 | ||
184 | 168 | ||
185 | void ne2000_outb(unsigned int val, unsigned int addr) | 169 | void ne2000_outb(unsigned int val, unsigned int addr) |
@@ -285,17 +269,6 @@ void ne2000_irqsetup(int irq) | |||
285 | } | 269 | } |
286 | #endif | 270 | #endif |
287 | 271 | ||
288 | #if defined(CONFIG_CFV240) | ||
289 | void ne2000_irqsetup(int irq) | ||
290 | { | ||
291 | volatile unsigned char *icrp; | ||
292 | |||
293 | icrp = (volatile unsigned char *) (MCF_MBAR + MCFSIM_ICR1); | ||
294 | *icrp = MCFSIM_ICR_LEVEL1 | MCFSIM_ICR_PRI2 | MCFSIM_ICR_AUTOVEC; | ||
295 | mcf_setimr(mcf_getimr() & ~MCFSIM_IMR_EINT1); | ||
296 | } | ||
297 | #endif | ||
298 | |||
299 | #if defined(CONFIG_M5206e) && defined(CONFIG_NETtel) | 272 | #if defined(CONFIG_M5206e) && defined(CONFIG_NETtel) |
300 | void ne2000_irqsetup(int irq) | 273 | void ne2000_irqsetup(int irq) |
301 | { | 274 | { |
diff --git a/include/asm-m68knommu/mcfsim.h b/include/asm-m68knommu/mcfsim.h index 1074ae717f74..da3f2ceff3a4 100644 --- a/include/asm-m68knommu/mcfsim.h +++ b/include/asm-m68knommu/mcfsim.h | |||
@@ -17,9 +17,7 @@ | |||
17 | * Include 5204, 5206/e, 5235, 5249, 5270/5271, 5272, 5280/5282, | 17 | * Include 5204, 5206/e, 5235, 5249, 5270/5271, 5272, 5280/5282, |
18 | * 5307 or 5407 specific addresses. | 18 | * 5307 or 5407 specific addresses. |
19 | */ | 19 | */ |
20 | #if defined(CONFIG_M5204) | 20 | #if defined(CONFIG_M5206) || defined(CONFIG_M5206e) |
21 | #include <asm/m5204sim.h> | ||
22 | #elif defined(CONFIG_M5206) || defined(CONFIG_M5206e) | ||
23 | #include <asm/m5206sim.h> | 21 | #include <asm/m5206sim.h> |
24 | #elif defined(CONFIG_M520x) | 22 | #elif defined(CONFIG_M520x) |
25 | #include <asm/m520xsim.h> | 23 | #include <asm/m520xsim.h> |
diff --git a/include/asm-m68knommu/mcftimer.h b/include/asm-m68knommu/mcftimer.h index 6f4d796e03db..0f90f6d2227a 100644 --- a/include/asm-m68knommu/mcftimer.h +++ b/include/asm-m68knommu/mcftimer.h | |||
@@ -16,7 +16,7 @@ | |||
16 | /* | 16 | /* |
17 | * Get address specific defines for this ColdFire member. | 17 | * Get address specific defines for this ColdFire member. |
18 | */ | 18 | */ |
19 | #if defined(CONFIG_M5204) || defined(CONFIG_M5206) || defined(CONFIG_M5206e) | 19 | #if defined(CONFIG_M5206) || defined(CONFIG_M5206e) |
20 | #define MCFTIMER_BASE1 0x100 /* Base address of TIMER1 */ | 20 | #define MCFTIMER_BASE1 0x100 /* Base address of TIMER1 */ |
21 | #define MCFTIMER_BASE2 0x120 /* Base address of TIMER2 */ | 21 | #define MCFTIMER_BASE2 0x120 /* Base address of TIMER2 */ |
22 | #elif defined(CONFIG_M5272) | 22 | #elif defined(CONFIG_M5272) |
diff --git a/include/asm-m68knommu/mcfuart.h b/include/asm-m68knommu/mcfuart.h index 8a7a67703ac3..ef2293873612 100644 --- a/include/asm-m68knommu/mcfuart.h +++ b/include/asm-m68knommu/mcfuart.h | |||
@@ -19,7 +19,7 @@ | |||
19 | #if defined(CONFIG_M5272) | 19 | #if defined(CONFIG_M5272) |
20 | #define MCFUART_BASE1 0x100 /* Base address of UART1 */ | 20 | #define MCFUART_BASE1 0x100 /* Base address of UART1 */ |
21 | #define MCFUART_BASE2 0x140 /* Base address of UART2 */ | 21 | #define MCFUART_BASE2 0x140 /* Base address of UART2 */ |
22 | #elif defined(CONFIG_M5204) || defined(CONFIG_M5206) || defined(CONFIG_M5206e) | 22 | #elif defined(CONFIG_M5206) || defined(CONFIG_M5206e) |
23 | #if defined(CONFIG_NETtel) | 23 | #if defined(CONFIG_NETtel) |
24 | #define MCFUART_BASE1 0x180 /* Base address of UART1 */ | 24 | #define MCFUART_BASE1 0x180 /* Base address of UART1 */ |
25 | #define MCFUART_BASE2 0x140 /* Base address of UART2 */ | 25 | #define MCFUART_BASE2 0x140 /* Base address of UART2 */ |
diff --git a/include/asm-m68knommu/system.h b/include/asm-m68knommu/system.h index 15b4c7d45c94..ee2dc07bae0e 100644 --- a/include/asm-m68knommu/system.h +++ b/include/asm-m68knommu/system.h | |||
@@ -207,23 +207,6 @@ cmpxchg(volatile int *p, int old, int new) | |||
207 | } | 207 | } |
208 | 208 | ||
209 | 209 | ||
210 | #ifdef CONFIG_M68332 | ||
211 | #define HARD_RESET_NOW() ({ \ | ||
212 | local_irq_disable(); \ | ||
213 | asm(" \ | ||
214 | movew #0x0000, 0xfffa6a; \ | ||
215 | reset; \ | ||
216 | /*movew #0x1557, 0xfffa44;*/ \ | ||
217 | /*movew #0x0155, 0xfffa46;*/ \ | ||
218 | moveal #0, %a0; \ | ||
219 | movec %a0, %vbr; \ | ||
220 | moveal 0, %sp; \ | ||
221 | moveal 4, %a0; \ | ||
222 | jmp (%a0); \ | ||
223 | "); \ | ||
224 | }) | ||
225 | #endif | ||
226 | |||
227 | #if defined( CONFIG_M68328 ) || defined( CONFIG_M68EZ328 ) || \ | 210 | #if defined( CONFIG_M68328 ) || defined( CONFIG_M68EZ328 ) || \ |
228 | defined (CONFIG_M68360) || defined( CONFIG_M68VZ328 ) | 211 | defined (CONFIG_M68360) || defined( CONFIG_M68VZ328 ) |
229 | #define HARD_RESET_NOW() ({ \ | 212 | #define HARD_RESET_NOW() ({ \ |