summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/apollolake/Makefile.inc1
-rw-r--r--src/soc/intel/apollolake/dptf.c18
2 files changed, 19 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/Makefile.inc b/src/soc/intel/apollolake/Makefile.inc
index 107a913932..00adb9cb50 100644
--- a/src/soc/intel/apollolake/Makefile.inc
+++ b/src/soc/intel/apollolake/Makefile.inc
@@ -49,6 +49,7 @@ ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
ramstage-y += cpu.c
ramstage-y += chip.c
ramstage-y += cse.c
+ramstage-y += dptf.c
ramstage-y += elog.c
ramstage-y += graphics.c
ramstage-y += gspi.c
diff --git a/src/soc/intel/apollolake/dptf.c b/src/soc/intel/apollolake/dptf.c
new file mode 100644
index 0000000000..b5accc99c5
--- /dev/null
+++ b/src/soc/intel/apollolake/dptf.c
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <drivers/intel/dptf/dptf.h>
+
+static const struct dptf_platform_info apl_dptf_platform_info = {
+ .use_eisa_hids = true,
+ /* _HID for the toplevel DPTF device, typically \_SB.DPTF */
+ .dptf_device_hid = "INT3400",
+ /* _HID for Intel DPTF Generic Device (these require PTYP as well) */
+ .generic_hid = "INT3403",
+ /* _HID for Intel DPTF Fan Device */
+ .fan_hid = "INT3404",
+};
+
+const struct dptf_platform_info *get_dptf_platform_info(void)
+{
+ return &apl_dptf_platform_info;
+}