soc/intel/broadwell: Re-do SerialIO UART console support
Use the same code from Lynx Point on Broadwell, and adjust as needed. Also add a config file to ensure the code gets build-tested. Tested on out-of-tree Compal LA-A992P (Haswell ULT), UART 0 works. Change-Id: I527024098738700d5fbaf3e27cf4db331a0322bd Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37553 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
@@ -604,11 +604,12 @@ static unsigned long broadwell_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
if (CONFIG(INTEL_PCH_UART_CONSOLE))
|
||||
if (CONFIG(SERIALIO_UART_CONSOLE)) {
|
||||
current = acpi_write_dbg2_pci_uart(rsdp, current,
|
||||
(CONFIG_INTEL_PCH_UART_CONSOLE_NUMBER == 1) ?
|
||||
(CONFIG_UART_FOR_CONSOLE == 1) ?
|
||||
PCH_DEV_UART1 : PCH_DEV_UART0,
|
||||
ACPI_ACCESS_SIZE_BYTE_ACCESS);
|
||||
ACPI_ACCESS_SIZE_DWORD_ACCESS);
|
||||
}
|
||||
return acpi_write_hpet(device, current, rsdp);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user