1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 #ifndef PP_HWMGR_PPT_H
25 #define PP_HWMGR_PPT_H
26
27 #include "hardwaremanager.h"
28 #include "smumgr.h"
29 #include "atom-types.h"
30
31 struct phm_ppt_v1_clock_voltage_dependency_record {
32 uint32_t clk;
33 uint8_t vddInd;
34 uint8_t vddciInd;
35 uint8_t mvddInd;
36 uint16_t vdd_offset;
37 uint16_t vddc;
38 uint16_t vddgfx;
39 uint16_t vddci;
40 uint16_t mvdd;
41 uint8_t phases;
42 uint8_t cks_enable;
43 uint8_t cks_voffset;
44 uint32_t sclk_offset;
45 };
46
47 typedef struct phm_ppt_v1_clock_voltage_dependency_record phm_ppt_v1_clock_voltage_dependency_record;
48
49 struct phm_ppt_v1_clock_voltage_dependency_table {
50 uint32_t count;
51 phm_ppt_v1_clock_voltage_dependency_record entries[1];
52 };
53
54 typedef struct phm_ppt_v1_clock_voltage_dependency_table phm_ppt_v1_clock_voltage_dependency_table;
55
56
57
58 struct phm_ppt_v1_mm_clock_voltage_dependency_record {
59 uint32_t dclk;
60 uint32_t vclk;
61 uint32_t eclk;
62 uint32_t aclk;
63 uint32_t samclock;
64 uint8_t vddcInd;
65 uint16_t vddgfx_offset;
66 uint16_t vddc;
67 uint16_t vddgfx;
68 uint8_t phases;
69 };
70 typedef struct phm_ppt_v1_mm_clock_voltage_dependency_record phm_ppt_v1_mm_clock_voltage_dependency_record;
71
72 struct phm_ppt_v1_mm_clock_voltage_dependency_table {
73 uint32_t count;
74 phm_ppt_v1_mm_clock_voltage_dependency_record entries[1];
75 };
76 typedef struct phm_ppt_v1_mm_clock_voltage_dependency_table phm_ppt_v1_mm_clock_voltage_dependency_table;
77
78 struct phm_ppt_v1_voltage_lookup_record {
79 uint16_t us_calculated;
80 uint16_t us_vdd;
81 uint16_t us_cac_low;
82 uint16_t us_cac_mid;
83 uint16_t us_cac_high;
84 };
85 typedef struct phm_ppt_v1_voltage_lookup_record phm_ppt_v1_voltage_lookup_record;
86
87 struct phm_ppt_v1_voltage_lookup_table {
88 uint32_t count;
89 phm_ppt_v1_voltage_lookup_record entries[1];
90 };
91 typedef struct phm_ppt_v1_voltage_lookup_table phm_ppt_v1_voltage_lookup_table;
92
93
94
95 struct phm_ppt_v1_pcie_record {
96 uint8_t gen_speed;
97 uint8_t lane_width;
98 uint16_t usreserved;
99 uint16_t reserved;
100 uint32_t pcie_sclk;
101 };
102 typedef struct phm_ppt_v1_pcie_record phm_ppt_v1_pcie_record;
103
104 struct phm_ppt_v1_pcie_table {
105 uint32_t count;
106 phm_ppt_v1_pcie_record entries[1];
107 };
108 typedef struct phm_ppt_v1_pcie_table phm_ppt_v1_pcie_table;
109
110 struct phm_ppt_v1_gpio_table {
111 uint8_t vrhot_triggered_sclk_dpm_index;
112 };
113 typedef struct phm_ppt_v1_gpio_table phm_ppt_v1_gpio_table;
114
115 #endif
116