diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-07-13 10:37:56 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-07-15 13:44:38 -0400 |
commit | 4c642f3f5e9f3f1a2fcce2c3fa1a94bf80142202 (patch) | |
tree | c4ec77d34ec82e5144b728ef9d4e368a2c833fec | |
parent | 6e68665e51b9937b132a990b9ae7f04118e64688 (diff) |
[MIPS] TXx9: rename asm-mips/mach-jmr3927 to asm-mips/mach-tx39xx
Rename mach-jmr3927 directory to more proper name to make adding other
platforms easier.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/Makefile | 2 | ||||
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 10 | ||||
-rw-r--r-- | arch/mips/txx9/jmr3927/setup.c | 4 | ||||
-rw-r--r-- | include/asm-mips/mach-tx39xx/ioremap.h (renamed from include/asm-mips/mach-jmr3927/ioremap.h) | 8 | ||||
-rw-r--r-- | include/asm-mips/mach-tx39xx/mangle-port.h (renamed from include/asm-mips/mach-jmr3927/mangle-port.h) | 13 | ||||
-rw-r--r-- | include/asm-mips/mach-tx39xx/war.h (renamed from include/asm-mips/mach-jmr3927/war.h) | 6 |
6 files changed, 29 insertions, 14 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index c4a3098a58c6..356453322b49 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -548,7 +548,7 @@ all-$(CONFIG_SNI_RM) := vmlinux.ecoff | |||
548 | # Common TXx9 | 548 | # Common TXx9 |
549 | # | 549 | # |
550 | core-$(CONFIG_MACH_TX39XX) += arch/mips/txx9/generic/ | 550 | core-$(CONFIG_MACH_TX39XX) += arch/mips/txx9/generic/ |
551 | cflags-$(CONFIG_MACH_TX39XX) += -Iinclude/asm-mips/mach-jmr3927 | 551 | cflags-$(CONFIG_MACH_TX39XX) += -Iinclude/asm-mips/mach-tx39xx |
552 | load-$(CONFIG_MACH_TX39XX) += 0xffffffff80050000 | 552 | load-$(CONFIG_MACH_TX39XX) += 0xffffffff80050000 |
553 | core-$(CONFIG_MACH_TX49XX) += arch/mips/txx9/generic/ | 553 | core-$(CONFIG_MACH_TX49XX) += arch/mips/txx9/generic/ |
554 | cflags-$(CONFIG_MACH_TX49XX) += -Iinclude/asm-mips/mach-tx49xx | 554 | cflags-$(CONFIG_MACH_TX49XX) += -Iinclude/asm-mips/mach-tx49xx |
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 517828e1ec92..452cb9ea12c0 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c | |||
@@ -200,3 +200,13 @@ asmlinkage void plat_irq_dispatch(void) | |||
200 | else | 200 | else |
201 | spurious_interrupt(); | 201 | spurious_interrupt(); |
202 | } | 202 | } |
203 | |||
204 | /* see include/asm-mips/mach-tx39xx/mangle-port.h, for example. */ | ||
205 | #ifdef NEEDS_TXX9_SWIZZLE_ADDR_B | ||
206 | static unsigned long __swizzle_addr_none(unsigned long port) | ||
207 | { | ||
208 | return port; | ||
209 | } | ||
210 | unsigned long (*__swizzle_addr_b)(unsigned long port) = __swizzle_addr_none; | ||
211 | EXPORT_SYMBOL(__swizzle_addr_b); | ||
212 | #endif | ||
diff --git a/arch/mips/txx9/jmr3927/setup.c b/arch/mips/txx9/jmr3927/setup.c index 43a8dad22ef7..61edc4ac1dbc 100644 --- a/arch/mips/txx9/jmr3927/setup.c +++ b/arch/mips/txx9/jmr3927/setup.c | |||
@@ -315,7 +315,7 @@ static void __init tx3927_setup(void) | |||
315 | } | 315 | } |
316 | 316 | ||
317 | /* This trick makes rtc-ds1742 driver usable as is. */ | 317 | /* This trick makes rtc-ds1742 driver usable as is. */ |
318 | unsigned long __swizzle_addr_b(unsigned long port) | 318 | static unsigned long jmr3927_swizzle_addr_b(unsigned long port) |
319 | { | 319 | { |
320 | if ((port & 0xffff0000) != JMR3927_IOC_NVRAMB_ADDR) | 320 | if ((port & 0xffff0000) != JMR3927_IOC_NVRAMB_ADDR) |
321 | return port; | 321 | return port; |
@@ -326,7 +326,6 @@ unsigned long __swizzle_addr_b(unsigned long port) | |||
326 | return port | 1; | 326 | return port | 1; |
327 | #endif | 327 | #endif |
328 | } | 328 | } |
329 | EXPORT_SYMBOL(__swizzle_addr_b); | ||
330 | 329 | ||
331 | static int __init jmr3927_rtc_init(void) | 330 | static int __init jmr3927_rtc_init(void) |
332 | { | 331 | { |
@@ -361,6 +360,7 @@ static int __init jmr3927_wdt_init(void) | |||
361 | 360 | ||
362 | static void __init jmr3927_device_init(void) | 361 | static void __init jmr3927_device_init(void) |
363 | { | 362 | { |
363 | __swizzle_addr_b = jmr3927_swizzle_addr_b; | ||
364 | jmr3927_rtc_init(); | 364 | jmr3927_rtc_init(); |
365 | jmr3927_wdt_init(); | 365 | jmr3927_wdt_init(); |
366 | } | 366 | } |
diff --git a/include/asm-mips/mach-jmr3927/ioremap.h b/include/asm-mips/mach-tx39xx/ioremap.h index 29989ff10d66..93c6c04ffda3 100644 --- a/include/asm-mips/mach-jmr3927/ioremap.h +++ b/include/asm-mips/mach-tx39xx/ioremap.h | |||
@@ -1,13 +1,13 @@ | |||
1 | /* | 1 | /* |
2 | * include/asm-mips/mach-jmr3927/ioremap.h | 2 | * include/asm-mips/mach-tx39xx/ioremap.h |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License | 5 | * modify it under the terms of the GNU General Public License |
6 | * as published by the Free Software Foundation; either version | 6 | * as published by the Free Software Foundation; either version |
7 | * 2 of the License, or (at your option) any later version. | 7 | * 2 of the License, or (at your option) any later version. |
8 | */ | 8 | */ |
9 | #ifndef __ASM_MACH_JMR3927_IOREMAP_H | 9 | #ifndef __ASM_MACH_TX39XX_IOREMAP_H |
10 | #define __ASM_MACH_JMR3927_IOREMAP_H | 10 | #define __ASM_MACH_TX39XX_IOREMAP_H |
11 | 11 | ||
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
13 | 13 | ||
@@ -35,4 +35,4 @@ static inline int plat_iounmap(const volatile void __iomem *addr) | |||
35 | return (unsigned long)addr >= TXX9_DIRECTMAP_BASE; | 35 | return (unsigned long)addr >= TXX9_DIRECTMAP_BASE; |
36 | } | 36 | } |
37 | 37 | ||
38 | #endif /* __ASM_MACH_JMR3927_IOREMAP_H */ | 38 | #endif /* __ASM_MACH_TX39XX_IOREMAP_H */ |
diff --git a/include/asm-mips/mach-jmr3927/mangle-port.h b/include/asm-mips/mach-tx39xx/mangle-port.h index 11bffcd1043b..ef0b502fd8b7 100644 --- a/include/asm-mips/mach-jmr3927/mangle-port.h +++ b/include/asm-mips/mach-tx39xx/mangle-port.h | |||
@@ -1,7 +1,12 @@ | |||
1 | #ifndef __ASM_MACH_JMR3927_MANGLE_PORT_H | 1 | #ifndef __ASM_MACH_TX39XX_MANGLE_PORT_H |
2 | #define __ASM_MACH_JMR3927_MANGLE_PORT_H | 2 | #define __ASM_MACH_TX39XX_MANGLE_PORT_H |
3 | 3 | ||
4 | extern unsigned long __swizzle_addr_b(unsigned long port); | 4 | #if defined(CONFIG_TOSHIBA_JMR3927) |
5 | extern unsigned long (*__swizzle_addr_b)(unsigned long port); | ||
6 | #define NEEDS_TXX9_SWIZZLE_ADDR_B | ||
7 | #else | ||
8 | #define __swizzle_addr_b(port) (port) | ||
9 | #endif | ||
5 | #define __swizzle_addr_w(port) (port) | 10 | #define __swizzle_addr_w(port) (port) |
6 | #define __swizzle_addr_l(port) (port) | 11 | #define __swizzle_addr_l(port) (port) |
7 | #define __swizzle_addr_q(port) (port) | 12 | #define __swizzle_addr_q(port) (port) |
@@ -15,4 +20,4 @@ extern unsigned long __swizzle_addr_b(unsigned long port); | |||
15 | #define ioswabq(a, x) le64_to_cpu(x) | 20 | #define ioswabq(a, x) le64_to_cpu(x) |
16 | #define __mem_ioswabq(a, x) (x) | 21 | #define __mem_ioswabq(a, x) (x) |
17 | 22 | ||
18 | #endif /* __ASM_MACH_JMR3927_MANGLE_PORT_H */ | 23 | #endif /* __ASM_MACH_TX39XX_MANGLE_PORT_H */ |
diff --git a/include/asm-mips/mach-jmr3927/war.h b/include/asm-mips/mach-tx39xx/war.h index 1ff55fb3fbcb..433814616359 100644 --- a/include/asm-mips/mach-jmr3927/war.h +++ b/include/asm-mips/mach-tx39xx/war.h | |||
@@ -5,8 +5,8 @@ | |||
5 | * | 5 | * |
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | 6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> |
7 | */ | 7 | */ |
8 | #ifndef __ASM_MIPS_MACH_JMR3927_WAR_H | 8 | #ifndef __ASM_MIPS_MACH_TX39XX_WAR_H |
9 | #define __ASM_MIPS_MACH_JMR3927_WAR_H | 9 | #define __ASM_MIPS_MACH_TX39XX_WAR_H |
10 | 10 | ||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | 11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 |
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | 12 | #define R4600_V1_HIT_CACHEOP_WAR 0 |
@@ -22,4 +22,4 @@ | |||
22 | #define R10000_LLSC_WAR 0 | 22 | #define R10000_LLSC_WAR 0 |
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | 23 | #define MIPS34K_MISSED_ITLB_WAR 0 |
24 | 24 | ||
25 | #endif /* __ASM_MIPS_MACH_JMR3927_WAR_H */ | 25 | #endif /* __ASM_MIPS_MACH_TX39XX_WAR_H */ |