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

Commit 51f5fa50 authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: Do not compile early console support for uartlite if is disabled



Kconfig blocks to select any other early console support that's why
this patch has no real impact on current kernel version. But it is done
because of uart16550.

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 9a7e8d80
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@
static u32 early_console_initialized;
static u32 early_console_initialized;
static u32 base_addr;
static u32 base_addr;


#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE
static void early_printk_uartlite_putc(char c)
static void early_printk_uartlite_putc(char c)
{
{
	/*
	/*
@@ -62,6 +63,7 @@ static struct console early_serial_uartlite_console = {
	.flags = CON_PRINTBUFFER,
	.flags = CON_PRINTBUFFER,
	.index = -1,
	.index = -1,
};
};
#endif /* CONFIG_SERIAL_UARTLITE_CONSOLE */


static struct console *early_console;
static struct console *early_console;


@@ -84,6 +86,7 @@ int __init setup_early_printk(char *opt)
	if (early_console_initialized)
	if (early_console_initialized)
		return 1;
		return 1;


#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE
	base_addr = early_uartlite_console();
	base_addr = early_uartlite_console();
	if (base_addr) {
	if (base_addr) {
		early_console_initialized = 1;
		early_console_initialized = 1;
@@ -97,7 +100,9 @@ int __init setup_early_printk(char *opt)
		/* register_console(early_console); */
		/* register_console(early_console); */


		return 0;
		return 0;
	} else
	}
#endif /* CONFIG_SERIAL_UARTLITE_CONSOLE */

	return 1;
	return 1;
}
}