From 04f1de3e149140f58358659c5977515ea36f17f7 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 10 Feb 2021 13:57:01 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50477 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/southbridge/intel/lynxpoint/lpc.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/southbridge') diff --git a/src/southbridge/intel/lynxpoint/lpc.c b/src/southbridge/intel/lynxpoint/lpc.c index b0ff5450cf..3685a413f0 100644 --- a/src/southbridge/intel/lynxpoint/lpc.c +++ b/src/southbridge/intel/lynxpoint/lpc.c @@ -692,7 +692,6 @@ static unsigned long southbridge_write_acpi_tables(const struct device *device, struct acpi_rsdp *rsdp) { unsigned long current; - acpi_header_t *ssdt; current = start; @@ -706,12 +705,14 @@ static unsigned long southbridge_write_acpi_tables(const struct device *device, current = acpi_align_current(current); - printk(BIOS_DEBUG, "ACPI: * SSDT2\n"); - ssdt = (acpi_header_t *)current; - acpi_create_serialio_ssdt(ssdt); - current += ssdt->length; - acpi_add_table(rsdp, ssdt); - current = acpi_align_current(current); + if (pch_is_lp()) { + printk(BIOS_DEBUG, "ACPI: * SSDT2\n"); + acpi_header_t *ssdt = (acpi_header_t *)current; + acpi_create_serialio_ssdt(ssdt); + current += ssdt->length; + acpi_add_table(rsdp, ssdt); + current = acpi_align_current(current); + } printk(BIOS_DEBUG, "current = %lx\n", current); return current; -- cgit v1.2.3