summaryrefslogtreecommitdiffstats
path: root/arch/nios2/kernel/setup.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-04-03 05:09:04 +0200
committerLey Foon Tan <ley.foon.tan@intel.com>2017-05-08 10:59:19 +0200
commit44a4ed42576da5f3387005a1667cb3e7aedfd687 (patch)
treed1963ca7e55fc9a21178bd42e30de1a11f3a5b28 /arch/nios2/kernel/setup.c
parentnios2: constify irq_domain_ops (diff)
downloadlinux-44a4ed42576da5f3387005a1667cb3e7aedfd687.tar.xz
linux-44a4ed42576da5f3387005a1667cb3e7aedfd687.zip
nios2: enable earlycon support
Enable generic earlycon support for nios2. This e.g. allows to use a 8250/16650 UART as earlycon. In order to get the earlycon, we just need to call parse_early_param() in early_init_devtree() as soon as the device tree is initially scanned. By adding an stdout-path property to the dts (done in this patch for 10m50_devboard), the earlycon can be used. In order to provide early printk support, we need to provide a dummy implementation of early_console_write(), so that arch/nios2/kernel/early_printk.c can still be compiled if neither SERIAL_ALTERA_JTAGUART_CONSOLE nor SERIAL_ALTERA_UART_CONSOLE is selected. As soon as the altera_uart and altera_jtaguart support earlycon, the entire file can be removed. Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/nios2/kernel/setup.c')
-rw-r--r--arch/nios2/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/nios2/kernel/setup.c b/arch/nios2/kernel/setup.c
index 6044d9be28b4..8b5146082e3e 100644
--- a/arch/nios2/kernel/setup.c
+++ b/arch/nios2/kernel/setup.c
@@ -137,6 +137,8 @@ asmlinkage void __init nios2_boot_init(unsigned r4, unsigned r5, unsigned r6,
strncpy(boot_command_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
#endif
#endif
+
+ parse_early_param();
}
void __init setup_arch(char **cmdline_p)