summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-12-19 18:09:56 +0530
committerSubrata Banik <subratabanik@google.com>2022-12-22 08:05:54 +0000
commitfbdccebb66e0684dd460f62d47130ad1e506d1bc (patch)
treecb6545becddbc614e82f806fc8d3b715a4efa2bb /src/soc
parentfd8c596c406ad23484e293dd3892ccf99c95e25b (diff)
soc/intel/tigerlake: Move DPTF ACPI Device IDs into header file
This patch moves DPTF ACPI Device IDs into the header file (soc/dptf.h) so that upcoming patches in this patch train can achieve more common code. TEST=Able to build and boot Google/Volteer. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I111fa9b2672ad01268bb2620b47a53a7a5b00f3f Reviewed-on: https://review.coreboot.org/c/coreboot/+/71107 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/tigerlake/dptf.c7
-rw-r--r--src/soc/intel/tigerlake/include/soc/dptf.h14
2 files changed, 18 insertions, 3 deletions
diff --git a/src/soc/intel/tigerlake/dptf.c b/src/soc/intel/tigerlake/dptf.c
index 482e3c200a..15626d97e2 100644
--- a/src/soc/intel/tigerlake/dptf.c
+++ b/src/soc/intel/tigerlake/dptf.c
@@ -1,16 +1,17 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <drivers/intel/dptf/dptf.h>
+#include <soc/dptf.h>
#include <stdbool.h>
static const struct dptf_platform_info tgl_dptf_platform_info = {
.use_eisa_hids = false,
/* _HID for the toplevel DPTF device, typically \_SB.DPTF */
- .dptf_device_hid = "INTC1040",
+ .dptf_device_hid = DPTF_DPTF_DEVICE,
/* _HID for Intel DPTF Generic Device (these require PTYP as well) */
- .generic_hid = "INTC1043",
+ .generic_hid = DPTF_GEN_DEVICE,
/* _HID for Intel DPTF Fan Device */
- .fan_hid = "INTC1044",
+ .fan_hid = DPTF_FAN_DEVICE,
};
const struct dptf_platform_info *soc_get_dptf_platform_info(void)
diff --git a/src/soc/intel/tigerlake/include/soc/dptf.h b/src/soc/intel/tigerlake/include/soc/dptf.h
new file mode 100644
index 0000000000..467ac65915
--- /dev/null
+++ b/src/soc/intel/tigerlake/include/soc/dptf.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef _SOC_DPTF_H_
+#define _SOC_DPTF_H_
+
+/* Below are the unique ACPI Device IDs for thermal/dptf on Tiger Lake SoC. */
+/* DPTF ACPI Device ID */
+#define DPTF_DPTF_DEVICE "INTC1040"
+/* Generic ACPI Device ID for TSR0/1/2/3 and charger */
+#define DPTF_GEN_DEVICE "INTC1043"
+/* Fan ACPI Device ID */
+#define DPTF_FAN_DEVICE "INTC1044"
+
+#endif /* _SOC_DPTF_H_ */