summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/dtt/Kconfig7
-rw-r--r--src/soc/intel/common/block/dtt/Makefile.inc1
-rw-r--r--src/soc/intel/common/block/dtt/dtt.c23
3 files changed, 31 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/dtt/Kconfig b/src/soc/intel/common/block/dtt/Kconfig
new file mode 100644
index 0000000000..063c475d53
--- /dev/null
+++ b/src/soc/intel/common/block/dtt/Kconfig
@@ -0,0 +1,7 @@
+config SOC_INTEL_COMMON_BLOCK_DTT
+ bool
+ default n
+ help
+ Minimal PCI Driver for enabling SSDT generation of Intel
+ Dynamic Tuning Technology (DTT) policies and controls, also
+ known as Intel DPTF (Dynamic Platform and Thermal Framework)
diff --git a/src/soc/intel/common/block/dtt/Makefile.inc b/src/soc/intel/common/block/dtt/Makefile.inc
new file mode 100644
index 0000000000..08f48c9e10
--- /dev/null
+++ b/src/soc/intel/common/block/dtt/Makefile.inc
@@ -0,0 +1 @@
+ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_DTT) += dtt.c
diff --git a/src/soc/intel/common/block/dtt/dtt.c b/src/soc/intel/common/block/dtt/dtt.c
new file mode 100644
index 0000000000..14987ead0a
--- /dev/null
+++ b/src/soc/intel/common/block/dtt/dtt.c
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <device/device.h>
+#include <device/pci.h>
+#include <device/pci_ids.h>
+
+static const unsigned short pci_device_ids[] = {
+ PCI_DEVICE_ID_INTEL_TGL_DTT,
+};
+
+static struct device_operations dptf_dev_ops = {
+ .read_resources = pci_dev_read_resources,
+ .set_resources = pci_dev_set_resources,
+ .enable_resources = pci_dev_enable_resources,
+ .scan_bus = scan_generic_bus,
+ .ops_pci = &pci_dev_ops_pci,
+};
+
+static const struct pci_driver pch_dptf __pci_driver = {
+ .ops = &dptf_dev_ops,
+ .vendor = PCI_VENDOR_ID_INTEL,
+ .devices = pci_device_ids,
+};