microblaze: Setup early console dynamically
Just setup pointer early console in run time.
Signed-off-by: Michal Simek <monstr@monstr.eu>
diff --git a/arch/microblaze/kernel/early_printk.c b/arch/microblaze/kernel/early_printk.c
index fa07d21..41e285c 100644
--- a/arch/microblaze/kernel/early_printk.c
+++ b/arch/microblaze/kernel/early_printk.c
@@ -63,7 +63,7 @@
.index = -1,
};
-static struct console *early_console = &early_serial_uartlite_console;
+static struct console *early_console;
void early_printk(const char *fmt, ...)
{
@@ -90,6 +90,7 @@
#ifdef CONFIG_MMU
early_console_reg_tlb_alloc(base_addr);
#endif
+ early_console = &early_serial_uartlite_console;
early_printk("early_printk_console is enabled at 0x%08x\n",
base_addr);