summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2018-11-20 17:20:57 -0800
committerPatrick Georgi <pgeorgi@google.com>2018-12-04 10:19:04 +0000
commitb94c867bb1dfcb0ec511e1cbe1f9bd5186e81385 (patch)
tree694a8611f3550e9591bde627dc9d0a496ff62675
parent45b8465602da800ce35c16dacf24c811f78ddcac (diff)
downloadcoreboot-b94c867bb1dfcb0ec511e1cbe1f9bd5186e81385.tar.xz
soc/intel/common/dptf: Make CPU address a define
In order to support using the common ACPI code on more platforms than just Apollo Lake the DPTF code needs to be told what the PCI address is for the CPU thermal device. Change-Id: I638f2387330bbc42f64eb0fb676ee32c5df6572e Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/29757 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/intel/apollolake/acpi/dptf.asl1
-rw-r--r--src/soc/intel/common/acpi/dptf/cpu.asl2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/acpi/dptf.asl b/src/soc/intel/apollolake/acpi/dptf.asl
index b9ba9c306c..f34725f92d 100644
--- a/src/soc/intel/apollolake/acpi/dptf.asl
+++ b/src/soc/intel/apollolake/acpi/dptf.asl
@@ -14,6 +14,7 @@
*/
#define DPTF_CPU_DEVICE TCPU
+#define DPTF_CPU_ADDR 0x00000001
#ifndef DPTF_CPU_PASSIVE
#define DPTF_CPU_PASSIVE 80
diff --git a/src/soc/intel/common/acpi/dptf/cpu.asl b/src/soc/intel/common/acpi/dptf/cpu.asl
index c28c0cc5d1..9414e25024 100644
--- a/src/soc/intel/common/acpi/dptf/cpu.asl
+++ b/src/soc/intel/common/acpi/dptf/cpu.asl
@@ -23,7 +23,7 @@ External (\_SB.MPDL, IntObj)
Device (DPTF_CPU_DEVICE)
{
- Name(_ADR, 0x00000001)
+ Name(_ADR, DPTF_CPU_ADDR)
Method (_STA)
{