diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2009-11-28 01:21:50 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-12-16 20:57:34 -0500 |
commit | c3d8d85019c9e4f6e4f23d194b6432a2c2464372 (patch) | |
tree | 644e1cf5e7f215fa6789d96bce9fac7e14666846 /arch/mips/include/asm/mach-loongson | |
parent | c47a48d83a7a82c86ff3e74bdcabeee8f6e6b730 (diff) |
MIPS: Loongson: Cleanups of serial port support
This patchs uses a loongson_uart_base variable instead of the
uart_base[] array and adds a new kernel option to avoid to compile
uart_base.c all the time, which will save a little bit of memory for us.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
http://patchwork.linux-mips.org/patch/727/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-loongson')
-rw-r--r-- | arch/mips/include/asm/mach-loongson/loongson.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/mips/include/asm/mach-loongson/loongson.h b/arch/mips/include/asm/mach-loongson/loongson.h index 06c28f387116..ee8bc8376972 100644 --- a/arch/mips/include/asm/mach-loongson/loongson.h +++ b/arch/mips/include/asm/mach-loongson/loongson.h | |||
@@ -31,9 +31,17 @@ extern void __init prom_init_memory(void); | |||
31 | extern void __init prom_init_cmdline(void); | 31 | extern void __init prom_init_cmdline(void); |
32 | extern void __init prom_init_machtype(void); | 32 | extern void __init prom_init_machtype(void); |
33 | extern void __init prom_init_env(void); | 33 | extern void __init prom_init_env(void); |
34 | extern unsigned long _loongson_uart_base; | 34 | #ifdef CONFIG_LOONGSON_UART_BASE |
35 | extern unsigned long uart8250_base[]; | 35 | extern unsigned long _loongson_uart_base, loongson_uart_base; |
36 | extern void prom_init_uart_base(void); | 36 | extern void prom_init_loongson_uart_base(void); |
37 | #endif | ||
38 | |||
39 | static inline void prom_init_uart_base(void) | ||
40 | { | ||
41 | #ifdef CONFIG_LOONGSON_UART_BASE | ||
42 | prom_init_loongson_uart_base(); | ||
43 | #endif | ||
44 | } | ||
37 | 45 | ||
38 | /* irq operation functions */ | 46 | /* irq operation functions */ |
39 | extern void bonito_irqdispatch(void); | 47 | extern void bonito_irqdispatch(void); |