summaryrefslogtreecommitdiffstats
path: root/src/southbridge/intel/lynxpoint/lpc.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-02-10 13:57:01 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-02-12 07:56:04 +0000
commit04f1de3e149140f58358659c5977515ea36f17f7 (patch)
treeb960d28a7289ca4e0fafedf8a5c1d9133ae7104f /src/southbridge/intel/lynxpoint/lpc.c
parent1afe46913a1ee6d7c24489e967089c316282edcd (diff)
downloadcoreboot-04f1de3e149140f58358659c5977515ea36f17f7.tar.gz
coreboot-04f1de3e149140f58358659c5977515ea36f17f7.tar.bz2
coreboot-04f1de3e149140f58358659c5977515ea36f17f7.zip
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>
Diffstat (limited to 'src/southbridge/intel/lynxpoint/lpc.c')
-rw-r--r--src/southbridge/intel/lynxpoint/lpc.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/southbridge/intel/lynxpoint/lpc.c b/src/southbridge/intel/lynxpoint/lpc.c
index b0ff5450cfa5..3685a413f000 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;