forked from luck/tmp_suning_uos_patched
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: 2eaa790989
)
when OF_EARLYCON_DECLARE is defined.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
27202f2f1d
commit
93d7bbaa65
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user