aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-09-28 02:33:53 -0400
committerMichal Simek <monstr@monstr.eu>2010-10-21 01:51:49 -0400
commit2af9ebe951bb12434e9f10cd1f0f83943ef3f54b (patch)
treec11d4d4cac46fbfb5fde0abb7f1867a7dbd3533b /arch/microblaze
parent96a5ff42298d0ea44d5aa321a56aeba280b52645 (diff)
microblaze: Rename all uartlite early printk functions
This is done because of uart16550 early printk support Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/early_printk.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/microblaze/kernel/early_printk.c b/arch/microblaze/kernel/early_printk.c
index 7de84923ba07..fa07d211adec 100644
--- a/arch/microblaze/kernel/early_printk.c
+++ b/arch/microblaze/kernel/early_printk.c
@@ -24,7 +24,7 @@
24static u32 early_console_initialized; 24static u32 early_console_initialized;
25static u32 base_addr; 25static u32 base_addr;
26 26
27static void early_printk_putc(char c) 27static void early_printk_uartlite_putc(char c)
28{ 28{
29 /* 29 /*
30 * Limit how many times we'll spin waiting for TX FIFO status. 30 * Limit how many times we'll spin waiting for TX FIFO status.
@@ -45,25 +45,25 @@ static void early_printk_putc(char c)
45 out_be32(base_addr + 4, c & 0xff); 45 out_be32(base_addr + 4, c & 0xff);
46} 46}
47 47
48static void early_printk_write(struct console *unused, 48static void early_printk_uartlite_write(struct console *unused,
49 const char *s, unsigned n) 49 const char *s, unsigned n)
50{ 50{
51 while (*s && n-- > 0) { 51 while (*s && n-- > 0) {
52 early_printk_putc(*s); 52 early_printk_uartlite_putc(*s);
53 if (*s == '\n') 53 if (*s == '\n')
54 early_printk_putc('\r'); 54 early_printk_uartlite_putc('\r');
55 s++; 55 s++;
56 } 56 }
57} 57}
58 58
59static struct console early_serial_console = { 59static struct console early_serial_uartlite_console = {
60 .name = "earlyser", 60 .name = "earlyser",
61 .write = early_printk_write, 61 .write = early_printk_uartlite_write,
62 .flags = CON_PRINTBUFFER, 62 .flags = CON_PRINTBUFFER,
63 .index = -1, 63 .index = -1,
64}; 64};
65 65
66static struct console *early_console = &early_serial_console; 66static struct console *early_console = &early_serial_uartlite_console;
67 67
68void early_printk(const char *fmt, ...) 68void early_printk(const char *fmt, ...)
69{ 69{