serial: serial_pl01x: Implement .getinfo() for PL01
When ACPI is enabled on arm it will use the getinfo function to fill the SPCR ACPI table. Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Reviewed-by: Simon Glass <sjg@chromium.org> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Moritz Fischer <moritzf@google.com>
This commit is contained in:
committed by
Tom Rini
parent
d016abb47f
commit
ea37e5064e
+6
-2
@@ -936,11 +936,15 @@ int bootflow_cmdline_auto(struct bootflow *bflow, const char *arg)
|
||||
return ret;
|
||||
|
||||
*buf = '\0';
|
||||
if (!strcmp("earlycon", arg)) {
|
||||
if (!strcmp("earlycon", arg) && info.type == SERIAL_CHIP_16550_COMPATIBLE) {
|
||||
snprintf(buf, sizeof(buf),
|
||||
"uart8250,mmio32,%#lx,%dn8", info.addr,
|
||||
info.baudrate);
|
||||
} else if (!strcmp("console", arg)) {
|
||||
} else if (!strcmp("earlycon", arg) && info.type == SERIAL_CHIP_PL01X) {
|
||||
snprintf(buf, sizeof(buf),
|
||||
"pl011,mmio32,%#lx,%dn8", info.addr,
|
||||
info.baudrate);
|
||||
} else if (!strcmp("console", arg) && info.type == SERIAL_CHIP_16550_COMPATIBLE) {
|
||||
snprintf(buf, sizeof(buf),
|
||||
"ttyS0,%dn8", info.baudrate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user