diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-10-29 19:28:44 +0100 |
---|---|---|
committer | Michael Niewöhner <foss@mniewoehner.de> | 2020-10-31 10:07:52 +0000 |
commit | 2d35cf8689998b9dc0626083c3a3d867f82a35e0 (patch) | |
tree | e0c49a4a67ba72cdf81ae7452f4bc2197c833e4c /src/southbridge/intel/lynxpoint/lpc.c | |
parent | cbd4ee73d71648821a268ce5c700236a95ba6125 (diff) |
sb/intel/lynxpoint: Use common code to generate HPET table
There's no need to reinvent the wheel.
Change-Id: If6b90c9a7a00af0322c6dd15d2c4ecf2c513d0cc
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46977
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/lynxpoint/lpc.c')
-rw-r--r-- | src/southbridge/intel/lynxpoint/lpc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/southbridge/intel/lynxpoint/lpc.c b/src/southbridge/intel/lynxpoint/lpc.c index 29cd53f703..12e262502e 100644 --- a/src/southbridge/intel/lynxpoint/lpc.c +++ b/src/southbridge/intel/lynxpoint/lpc.c @@ -737,7 +737,6 @@ static unsigned long southbridge_write_acpi_tables(const struct device *device, struct acpi_rsdp *rsdp) { unsigned long current; - acpi_hpet_t *hpet; acpi_header_t *ssdt; current = start; @@ -748,13 +747,7 @@ static unsigned long southbridge_write_acpi_tables(const struct device *device, /* * We explicitly add these tables later on: */ - printk(BIOS_DEBUG, "ACPI: * HPET\n"); - - hpet = (acpi_hpet_t *)current; - current += sizeof(acpi_hpet_t); - current = acpi_align_current(current); - acpi_create_intel_hpet(hpet); - acpi_add_table(rsdp, hpet); + current = acpi_write_hpet(device, current, rsdp); current = acpi_align_current(current); |