aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/Makefile2
-rw-r--r--arch/mips/txx9/generic/setup.c10
-rw-r--r--arch/mips/txx9/jmr3927/setup.c4
3 files changed, 13 insertions, 3 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#
550core-$(CONFIG_MACH_TX39XX) += arch/mips/txx9/generic/ 550core-$(CONFIG_MACH_TX39XX) += arch/mips/txx9/generic/
551cflags-$(CONFIG_MACH_TX39XX) += -Iinclude/asm-mips/mach-jmr3927 551cflags-$(CONFIG_MACH_TX39XX) += -Iinclude/asm-mips/mach-tx39xx
552load-$(CONFIG_MACH_TX39XX) += 0xffffffff80050000 552load-$(CONFIG_MACH_TX39XX) += 0xffffffff80050000
553core-$(CONFIG_MACH_TX49XX) += arch/mips/txx9/generic/ 553core-$(CONFIG_MACH_TX49XX) += arch/mips/txx9/generic/
554cflags-$(CONFIG_MACH_TX49XX) += -Iinclude/asm-mips/mach-tx49xx 554cflags-$(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
206static unsigned long __swizzle_addr_none(unsigned long port)
207{
208 return port;
209}
210unsigned long (*__swizzle_addr_b)(unsigned long port) = __swizzle_addr_none;
211EXPORT_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. */
318unsigned long __swizzle_addr_b(unsigned long port) 318static 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}
329EXPORT_SYMBOL(__swizzle_addr_b);
330 329
331static int __init jmr3927_rtc_init(void) 330static int __init jmr3927_rtc_init(void)
332{ 331{
@@ -361,6 +360,7 @@ static int __init jmr3927_wdt_init(void)
361 360
362static void __init jmr3927_device_init(void) 361static 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}