kernel_optimize_test/arch/nios2
Tobias Klauser 44a4ed4257 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>
2017-05-08 16:59:19 +08:00
..
boot nios2: enable earlycon support 2017-05-08 16:59:19 +08:00
configs treewide: Remove remaining executable attributes from source files 2017-02-25 12:12:50 -08:00
include nios2: remove wrapper header for cmpxchg.h 2017-05-08 16:59:19 +08:00
kernel nios2: enable earlycon support 2017-05-08 16:59:19 +08:00
lib nios2: memset: use the right constraint modifier for the %4 output operand 2016-04-27 16:35:55 +08:00
mm nios2: switch to RAW_COPY_USER 2017-03-28 18:23:50 -04:00
platform nios2: Remove unnecessary of_platform_populate with default match table 2016-06-23 15:00:31 -05:00
Kconfig CONFIG_ARCH_HAS_RAW_COPY_USER is unconditional now 2017-04-26 12:11:01 -04:00
Kconfig.debug nios2: enable earlycon support 2017-05-08 16:59:19 +08:00
Makefile nios2: Add order-only DTC dependency to %.dtb target 2016-05-19 09:15:00 +08:00