summaryrefslogtreecommitdiff
path: root/src/drivers/intel/dptf/dptf.h
blob: bf383084b0e787c5a732dbf51bb751ffda29ce3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* 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 char *tpch_device_hid;
	const char *tpwr_device_hid;
	const char *tbat_device_hid;
	struct {
		const char *set_fivr_low_clock_method;
		const char *set_fivr_high_clock_method;
		const char *get_fivr_low_clock_method;
		const char *get_fivr_high_clock_method;
		const char *get_fivr_ssc_method;
		const char *get_fivr_switching_fault_status;
		const char *get_fivr_switching_freq_mhz;
	} tpch_method_names;
};

/*
 * `soc_get_dptf_platform_info()` is a callback into the SoC directory
 * to fill in the `struct dptf_platform_info` data structure.
 */
const struct dptf_platform_info *soc_get_dptf_platform_info(void);

#endif /* _DRIVERS_INTEL_DPTF_H_ */