From a50b1f9dd0e6caa3f33ddac4e54c44f881876ede Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 6 May 2018 18:13:19 -0500 Subject: intel bd82x6x/lynxpoint systems: Update ACPI thermal zone handler Currently the throttle event handler method THRM is defined as an extern on the intel bd82x6x and lynxpoint chipsets, then defined again in the platform with thermal event handling. In newer versions of IASL, this generates an error, as the method is defined in two places. Simply removing the extern causes the call to it to fail on platforms where it isn't actually defined, so add a preprocessor define where it's implemented, and only call the method on those platforms. This also requires moving the thermal handler, which now includes the define to before the gnvs asl file. TEST=Build before and after, make sure correct code is included. Change-Id: I7af4a346496c1352ec20bda8acb338b5d277d99b Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/26123 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/mainboard/google/link/acpi/thermal.asl | 1 + src/mainboard/google/link/dsdt.asl | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/link') diff --git a/src/mainboard/google/link/acpi/thermal.asl b/src/mainboard/google/link/acpi/thermal.asl index 9163493673..e0d25e711d 100644 --- a/src/mainboard/google/link/acpi/thermal.asl +++ b/src/mainboard/google/link/acpi/thermal.asl @@ -15,6 +15,7 @@ // Thermal Zone +#define HAVE_THERMALZONE Scope (\_TZ) { ThermalZone (CRIT) diff --git a/src/mainboard/google/link/dsdt.asl b/src/mainboard/google/link/dsdt.asl index 82fb3f62df..5af07938c5 100644 --- a/src/mainboard/google/link/dsdt.asl +++ b/src/mainboard/google/link/dsdt.asl @@ -29,13 +29,15 @@ DefinitionBlock( #include "acpi/platform.asl" #include "acpi/mainboard.asl" + // Thermal handler + #include "acpi/thermal.asl" + // global NVS and variables #include // General Purpose Events //#include "acpi/gpe.asl" - #include "acpi/thermal.asl" #include -- cgit v1.2.3