Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a7e8d80 authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: Setup early console dynamically



Just setup pointer early console in run time.

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 2af9ebe9
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -63,7 +63,7 @@ static struct console early_serial_uartlite_console = {
	.index = -1,
	.index = -1,
};
};


static struct console *early_console = &early_serial_uartlite_console;
static struct console *early_console;


void early_printk(const char *fmt, ...)
void early_printk(const char *fmt, ...)
{
{
@@ -90,6 +90,7 @@ int __init setup_early_printk(char *opt)
#ifdef CONFIG_MMU
#ifdef CONFIG_MMU
		early_console_reg_tlb_alloc(base_addr);
		early_console_reg_tlb_alloc(base_addr);
#endif
#endif
		early_console = &early_serial_uartlite_console;
		early_printk("early_printk_console is enabled at 0x%08x\n",
		early_printk("early_printk_console is enabled at 0x%08x\n",
							base_addr);
							base_addr);