mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
serial: 8250: Add OF earlycon support
This allows earlycon to be used without needing to specify the I/O address on the kernel command line, if linux,stdout-path is specified in the chosen node. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
913c6c0e94
commit
d05f15707b
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,8 @@
|
||||||
#include <linux/tty.h>
|
#include <linux/tty.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/console.h>
|
#include <linux/console.h>
|
||||||
|
#include <linux/of.h>
|
||||||
|
#include <linux/of_device.h>
|
||||||
#include <linux/serial_reg.h>
|
#include <linux/serial_reg.h>
|
||||||
#include <linux/serial.h>
|
#include <linux/serial.h>
|
||||||
#include <linux/serial_8250.h>
|
#include <linux/serial_8250.h>
|
||||||
|
@ -152,3 +154,5 @@ int __init early_serial8250_setup(struct earlycon_device *device,
|
||||||
}
|
}
|
||||||
EARLYCON_DECLARE(uart8250, early_serial8250_setup);
|
EARLYCON_DECLARE(uart8250, early_serial8250_setup);
|
||||||
EARLYCON_DECLARE(uart, early_serial8250_setup);
|
EARLYCON_DECLARE(uart, early_serial8250_setup);
|
||||||
|
OF_EARLYCON_DECLARE(ns16550, "ns16550", early_serial8250_setup);
|
||||||
|
OF_EARLYCON_DECLARE(ns16550a, "ns16550a", early_serial8250_setup);
|
||||||
|
|
Loading…
Add table
Reference in a new issue