Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1077,7 +1077,9 @@ static int __init cdns_early_console_setup(struct earlycon_device *device,

	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