diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2009-10-15 12:49:27 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 06:52:55 -0500 |
commit | 8402a1588a4f63465079e98481dd83d1d9cc9a98 (patch) | |
tree | 1ace3c45421fe4b8d29762fcc67bd09064197f18 /arch/mips/alchemy/xxs1500 | |
parent | 963accbc82a0912b39de39d59e2fd6741db3aa4b (diff) |
MIPS: Alchemy: prom_putchar is board dependent
This patch replaces the general alchemy prom_putchar() implementation
in favor of board-specific versions: The UART where the output of
prom_putchar is directed to really depends on the board, the current
implementation hardcodes this on a per-SoC basis which is just wrong.
So a generic uart tx function is provided in the alchemy headers,
and the boards can provide their own prom_putchar with custom
destination uart, and all in-kernel alchemy boards support
early printk.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy/xxs1500')
-rw-r--r-- | arch/mips/alchemy/xxs1500/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/alchemy/xxs1500/init.c b/arch/mips/alchemy/xxs1500/init.c index 456fa142c093..15125c2fda7d 100644 --- a/arch/mips/alchemy/xxs1500/init.c +++ b/arch/mips/alchemy/xxs1500/init.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/kernel.h> | 30 | #include <linux/kernel.h> |
31 | 31 | ||
32 | #include <asm/bootinfo.h> | 32 | #include <asm/bootinfo.h> |
33 | #include <asm/mach-au1x00/au1000.h> | ||
33 | 34 | ||
34 | #include <prom.h> | 35 | #include <prom.h> |
35 | 36 | ||
@@ -56,3 +57,8 @@ void __init prom_init(void) | |||
56 | strict_strtoul(memsize_str, 0, &memsize); | 57 | strict_strtoul(memsize_str, 0, &memsize); |
57 | add_memory_region(0, memsize, BOOT_MEM_RAM); | 58 | add_memory_region(0, memsize, BOOT_MEM_RAM); |
58 | } | 59 | } |
60 | |||
61 | void prom_putchar(unsigned char c) | ||
62 | { | ||
63 | alchemy_uart_putchar(UART0_PHYS_ADDR, c); | ||
64 | } | ||