1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #ifndef _VEGA20_PPTABLE_H_
24 #define _VEGA20_PPTABLE_H_
25
26 #pragma pack(push, 1)
27
28 #define ATOM_VEGA20_PP_THERMALCONTROLLER_NONE 0
29 #define ATOM_VEGA20_PP_THERMALCONTROLLER_VEGA20 26
30
31 #define ATOM_VEGA20_PP_PLATFORM_CAP_POWERPLAY 0x1
32 #define ATOM_VEGA20_PP_PLATFORM_CAP_SBIOSPOWERSOURCE 0x2
33 #define ATOM_VEGA20_PP_PLATFORM_CAP_HARDWAREDC 0x4
34 #define ATOM_VEGA20_PP_PLATFORM_CAP_BACO 0x8
35 #define ATOM_VEGA20_PP_PLATFORM_CAP_BAMACO 0x10
36 #define ATOM_VEGA20_PP_PLATFORM_CAP_ENABLESHADOWPSTATE 0x20
37
38 #define ATOM_VEGA20_TABLE_REVISION_VEGA20 11
39 #define ATOM_VEGA20_ODFEATURE_MAX_COUNT 32
40 #define ATOM_VEGA20_ODSETTING_MAX_COUNT 32
41 #define ATOM_VEGA20_PPCLOCK_MAX_COUNT 16
42
43 enum ATOM_VEGA20_ODFEATURE_ID {
44 ATOM_VEGA20_ODFEATURE_GFXCLK_LIMITS = 0,
45 ATOM_VEGA20_ODFEATURE_GFXCLK_CURVE,
46 ATOM_VEGA20_ODFEATURE_UCLK_MAX,
47 ATOM_VEGA20_ODFEATURE_POWER_LIMIT,
48 ATOM_VEGA20_ODFEATURE_FAN_ACOUSTIC_LIMIT,
49 ATOM_VEGA20_ODFEATURE_FAN_SPEED_MIN,
50 ATOM_VEGA20_ODFEATURE_TEMPERATURE_FAN,
51 ATOM_VEGA20_ODFEATURE_TEMPERATURE_SYSTEM,
52 ATOM_VEGA20_ODFEATURE_MEMORY_TIMING_TUNE,
53 ATOM_VEGA20_ODFEATURE_FAN_ZERO_RPM_CONTROL,
54 ATOM_VEGA20_ODFEATURE_COUNT,
55 };
56
57 enum ATOM_VEGA20_ODSETTING_ID {
58 ATOM_VEGA20_ODSETTING_GFXCLKFMAX = 0,
59 ATOM_VEGA20_ODSETTING_GFXCLKFMIN,
60 ATOM_VEGA20_ODSETTING_VDDGFXCURVEFREQ_P1,
61 ATOM_VEGA20_ODSETTING_VDDGFXCURVEVOLTAGEOFFSET_P1,
62 ATOM_VEGA20_ODSETTING_VDDGFXCURVEFREQ_P2,
63 ATOM_VEGA20_ODSETTING_VDDGFXCURVEVOLTAGEOFFSET_P2,
64 ATOM_VEGA20_ODSETTING_VDDGFXCURVEFREQ_P3,
65 ATOM_VEGA20_ODSETTING_VDDGFXCURVEVOLTAGEOFFSET_P3,
66 ATOM_VEGA20_ODSETTING_UCLKFMAX,
67 ATOM_VEGA20_ODSETTING_POWERPERCENTAGE,
68 ATOM_VEGA20_ODSETTING_FANRPMMIN,
69 ATOM_VEGA20_ODSETTING_FANRPMACOUSTICLIMIT,
70 ATOM_VEGA20_ODSETTING_FANTARGETTEMPERATURE,
71 ATOM_VEGA20_ODSETTING_OPERATINGTEMPMAX,
72 ATOM_VEGA20_ODSETTING_COUNT,
73 };
74 typedef enum ATOM_VEGA20_ODSETTING_ID ATOM_VEGA20_ODSETTING_ID;
75
76 typedef struct _ATOM_VEGA20_OVERDRIVE8_RECORD
77 {
78 UCHAR ucODTableRevision;
79 ULONG ODFeatureCount;
80 UCHAR ODFeatureCapabilities [ATOM_VEGA20_ODFEATURE_MAX_COUNT];
81 ULONG ODSettingCount;
82 ULONG ODSettingsMax [ATOM_VEGA20_ODSETTING_MAX_COUNT];
83 ULONG ODSettingsMin [ATOM_VEGA20_ODSETTING_MAX_COUNT];
84 } ATOM_VEGA20_OVERDRIVE8_RECORD;
85
86 enum ATOM_VEGA20_PPCLOCK_ID {
87 ATOM_VEGA20_PPCLOCK_GFXCLK = 0,
88 ATOM_VEGA20_PPCLOCK_VCLK,
89 ATOM_VEGA20_PPCLOCK_DCLK,
90 ATOM_VEGA20_PPCLOCK_ECLK,
91 ATOM_VEGA20_PPCLOCK_SOCCLK,
92 ATOM_VEGA20_PPCLOCK_UCLK,
93 ATOM_VEGA20_PPCLOCK_FCLK,
94 ATOM_VEGA20_PPCLOCK_DCEFCLK,
95 ATOM_VEGA20_PPCLOCK_DISPCLK,
96 ATOM_VEGA20_PPCLOCK_PIXCLK,
97 ATOM_VEGA20_PPCLOCK_PHYCLK,
98 ATOM_VEGA20_PPCLOCK_COUNT,
99 };
100 typedef enum ATOM_VEGA20_PPCLOCK_ID ATOM_VEGA20_PPCLOCK_ID;
101
102 typedef struct _ATOM_VEGA20_POWER_SAVING_CLOCK_RECORD
103 {
104 UCHAR ucTableRevision;
105 ULONG PowerSavingClockCount;
106 ULONG PowerSavingClockMax [ATOM_VEGA20_PPCLOCK_MAX_COUNT];
107 ULONG PowerSavingClockMin [ATOM_VEGA20_PPCLOCK_MAX_COUNT];
108 } ATOM_VEGA20_POWER_SAVING_CLOCK_RECORD;
109
110 typedef struct _ATOM_VEGA20_POWERPLAYTABLE
111 {
112 struct atom_common_table_header sHeader;
113 UCHAR ucTableRevision;
114 USHORT usTableSize;
115 ULONG ulGoldenPPID;
116 ULONG ulGoldenRevision;
117 USHORT usFormatID;
118
119 ULONG ulPlatformCaps;
120
121 UCHAR ucThermalControllerType;
122
123 USHORT usSmallPowerLimit1;
124 USHORT usSmallPowerLimit2;
125 USHORT usBoostPowerLimit;
126 USHORT usODTurboPowerLimit;
127 USHORT usODPowerSavePowerLimit;
128 USHORT usSoftwareShutdownTemp;
129
130 ATOM_VEGA20_POWER_SAVING_CLOCK_RECORD PowerSavingClockTable;
131
132 ATOM_VEGA20_OVERDRIVE8_RECORD OverDrive8Table;
133
134 USHORT usReserve[5];
135
136 PPTable_t smcPPTable;
137
138 } ATOM_Vega20_POWERPLAYTABLE;
139
140 #pragma pack(pop)
141
142 #endif