Commit 93d7bbaa authored by Michal Simek's avatar Michal Simek Committed by Greg Kroah-Hartman

serial: xuartps: Enable OF earlycon support

Support early console setup via DT for all listed compatible strings.
Remove EARLYCON_DECLARE which was done by:
"Use common framework for earlycon declarations"
(sha1: 2eaa7909)
when OF_EARLYCON_DECLARE is defined.
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 27202f2f
...@@ -1077,7 +1077,9 @@ static int __init cdns_early_console_setup(struct earlycon_device *device, ...@@ -1077,7 +1077,9 @@ static int __init cdns_early_console_setup(struct earlycon_device *device,
return 0; return 0;
} }
EARLYCON_DECLARE(cdns, cdns_early_console_setup); OF_EARLYCON_DECLARE(cdns, "xlnx,xuartps", cdns_early_console_setup);
OF_EARLYCON_DECLARE(cdns, "cdns,uart-r1p8", cdns_early_console_setup);
OF_EARLYCON_DECLARE(cdns, "cdns,uart-r1p12", cdns_early_console_setup);
/** /**
* cdns_uart_console_write - perform write operation * cdns_uart_console_write - perform write operation
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment