summaryrefslogtreecommitdiffstats
path: root/src/drivers/intel/dptf/dptf.h
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2021-04-09 12:15:21 -0600
committerPatrick Georgi <pgeorgi@google.com>2021-04-13 08:22:49 +0000
commit7f7c3882a6ac776ba215551a3c5cd9a7379933b5 (patch)
tree49e5a36cecd0a05a34a2600102156f7381195472 /src/drivers/intel/dptf/dptf.h
parent24ea3f3364711f352a8a174e6fc0f22885725ed5 (diff)
downloadcoreboot-7f7c3882a6ac776ba215551a3c5cd9a7379933b5.tar.gz
coreboot-7f7c3882a6ac776ba215551a3c5cd9a7379933b5.tar.bz2
coreboot-7f7c3882a6ac776ba215551a3c5cd9a7379933b5.zip
dptf: Move platform-specific information to `struct dptf_platform_info`
DPTF HIDs are different per-platform going forward, so refactor these into SoC-specific structures which the DPTF driver can query at runtime for platform-specific information. Change-Id: I6307f9d28f4274b851323ad69180ff4ae35053da Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52220 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
Diffstat (limited to 'src/drivers/intel/dptf/dptf.h')
-rw-r--r--src/drivers/intel/dptf/dptf.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/drivers/intel/dptf/dptf.h b/src/drivers/intel/dptf/dptf.h
new file mode 100644
index 000000000000..2eeec7bc0d48
--- /dev/null
+++ b/src/drivers/intel/dptf/dptf.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef _DRIVERS_INTEL_DPTF_H_
+#define _DRIVERS_INTEL_DPTF_H_
+
+#include <types.h>
+
+struct dptf_platform_info {
+ /*
+ * True indicates the platform-specific HIDs are to be emitted in EISA
+ * format instead of a string.
+ */
+ bool use_eisa_hids;
+ const char *dptf_device_hid;
+ const char *generic_hid;
+ const char *fan_hid;
+};
+
+const struct dptf_platform_info *get_dptf_platform_info(void);
+
+#endif /* _DRIVERS_INTEL_DPTF_H_ */