Lines Matching +full:console +full:- +full:size

1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/console.h>
32 if (memcmp(h->oem_id, "QCOM ", ACPI_OEM_ID_SIZE)) in qdf2400_erratum_44_present()
35 if (!memcmp(h->oem_table_id, "QDF2432 ", ACPI_OEM_TABLE_ID_SIZE)) in qdf2400_erratum_44_present()
38 if (!memcmp(h->oem_table_id, "QDF2400 ", ACPI_OEM_TABLE_ID_SIZE) && in qdf2400_erratum_44_present()
39 h->oem_revision == 1) in qdf2400_erratum_44_present()
46 * APM X-Gene v1 and v2 UART hardware is an 16550 like device but has its
47 * register aligned to 32-bit. In addition, the BIOS also encoded the
54 if (tb->interface_type != ACPI_DBG2_16550_COMPATIBLE) in xgene_8250_erratum_present()
57 if (memcmp(tb->header.oem_id, "APMC0D", ACPI_OEM_ID_SIZE) && in xgene_8250_erratum_present()
58 memcmp(tb->header.oem_id, "HPE ", ACPI_OEM_ID_SIZE)) in xgene_8250_erratum_present()
61 if (!memcmp(tb->header.oem_table_id, "XGENESPC", in xgene_8250_erratum_present()
62 ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 0) in xgene_8250_erratum_present()
65 if (!memcmp(tb->header.oem_table_id, "ProLiant", in xgene_8250_erratum_present()
66 ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 1) in xgene_8250_erratum_present()
73 * acpi_parse_spcr() - parse ACPI SPCR table and add preferred console
75 * @enable_earlycon: set up earlycon for the console specified by the table
76 * @enable_console: setup the console specified by the table.
80 * console is registered and if @enable_earlycon is true, earlycon is set up.
81 * If @enable_console is true the system console is also configured.
98 return -ENODEV; in acpi_parse_spcr()
104 return -ENOENT; in acpi_parse_spcr()
106 if (table->header.revision < 2) in acpi_parse_spcr()
107 pr_info("SPCR table version %d\n", table->header.revision); in acpi_parse_spcr()
109 if (table->serial_port.space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY) { in acpi_parse_spcr()
110 u32 bit_width = table->serial_port.access_width; in acpi_parse_spcr()
113 pr_err("Unacceptable wide SPCR Access Width. Defaulting to byte size\n"); in acpi_parse_spcr()
118 pr_err("Unexpected SPCR Access Width. Defaulting to byte size\n"); in acpi_parse_spcr()
133 switch (table->interface_type) { in acpi_parse_spcr()
149 err = -ENOENT; in acpi_parse_spcr()
153 switch (table->baud_rate) { in acpi_parse_spcr()
157 * Assume firmware or bootloader configures console correctly. in acpi_parse_spcr()
174 err = -ENOENT; in acpi_parse_spcr()
180 * driver to implement the work-around. in acpi_parse_spcr()
183 * creates the UARTs, whether or not they're used as a console. in acpi_parse_spcr()
186 * console name matches the EARLYCON_DECLARE() statement, and in acpi_parse_spcr()
190 * the console name so that it also says "qdf2400_e44". Parameter in acpi_parse_spcr()
193 * For consistency, if we change the console name, then we do it in acpi_parse_spcr()
196 if (qdf2400_erratum_44_present(&table->header)) { in acpi_parse_spcr()
214 table->serial_port.address); in acpi_parse_spcr()
217 table->serial_port.address, baud_rate); in acpi_parse_spcr()
220 pr_info("console: %s\n", opts); in acpi_parse_spcr()