Skip to contentSkip to conversation

serial: 8250: Add OF earlycon support

PATCH RESEND New Scott Wood 1 participant 1 message Sep 15, 2015 TTY layer and serial drivers

lore
Share & tools
lore

Scott Wood

author
#0 lore raw

PATCH RESEND 1/1 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.

---
Sorry, forgot to include the mailing lists on previous sending.

 drivers/tty/serial/8250/8250_early.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/tty/serial/8250/8250_early.c +4 -0
index faed05f..ceb8579 100644
@@ -29,6 +29,8 @@
 #include <linux/tty.h>
 #include <linux/init.h>
 #include <linux/console.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
 #include <linux/serial_reg.h>
 #include <linux/serial.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(uart, early_serial8250_setup);
+OF_EARLYCON_DECLARE(ns16550, "ns16550", early_serial8250_setup);
+OF_EARLYCON_DECLARE(ns16550a, "ns16550a", early_serial8250_setup);
Signature · 5 lines
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html