sb/intel/lynxpoint: Only generate SerialIO SSDT for PCH-LP

Lynxpoint PCH-H does not have SerialIO, so do not generate its SSDT.

Change-Id: Ie816ebd470df93a45826498bf21be59ff0a813bf
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50477
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Angel Pons 2021-02-10 13:57:01 +01:00 committed by Patrick Georgi
parent 1afe46913a
commit 04f1de3e14
1 changed files with 8 additions and 7 deletions

View File

@ -692,7 +692,6 @@ static unsigned long southbridge_write_acpi_tables(const struct device *device,
struct acpi_rsdp *rsdp) struct acpi_rsdp *rsdp)
{ {
unsigned long current; unsigned long current;
acpi_header_t *ssdt;
current = start; current = start;
@ -706,12 +705,14 @@ static unsigned long southbridge_write_acpi_tables(const struct device *device,
current = acpi_align_current(current); current = acpi_align_current(current);
if (pch_is_lp()) {
printk(BIOS_DEBUG, "ACPI: * SSDT2\n"); printk(BIOS_DEBUG, "ACPI: * SSDT2\n");
ssdt = (acpi_header_t *)current; acpi_header_t *ssdt = (acpi_header_t *)current;
acpi_create_serialio_ssdt(ssdt); acpi_create_serialio_ssdt(ssdt);
current += ssdt->length; current += ssdt->length;
acpi_add_table(rsdp, ssdt); acpi_add_table(rsdp, ssdt);
current = acpi_align_current(current); current = acpi_align_current(current);
}
printk(BIOS_DEBUG, "current = %lx\n", current); printk(BIOS_DEBUG, "current = %lx\n", current);
return current; return current;