pptable_v1_0.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. /*
  2. * Copyright 2015 Advanced Micro Devices, Inc.
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  18. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  19. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20. * OTHER DEALINGS IN THE SOFTWARE.
  21. *
  22. */
  23. #ifndef TONGA_PPTABLE_H
  24. #define TONGA_PPTABLE_H
  25. /** \file
  26. * This is a PowerPlay table header file
  27. */
  28. #pragma pack(push, 1)
  29. #include "hwmgr.h"
  30. #define ATOM_TONGA_PP_FANPARAMETERS_TACHOMETER_PULSES_PER_REVOLUTION_MASK 0x0f
  31. #define ATOM_TONGA_PP_FANPARAMETERS_NOFAN 0x80 /* No fan is connected to this controller. */
  32. #define ATOM_TONGA_PP_THERMALCONTROLLER_NONE 0
  33. #define ATOM_TONGA_PP_THERMALCONTROLLER_LM96163 17
  34. #define ATOM_TONGA_PP_THERMALCONTROLLER_TONGA 21
  35. #define ATOM_TONGA_PP_THERMALCONTROLLER_FIJI 22
  36. /*
  37. * Thermal controller 'combo type' to use an external controller for Fan control and an internal controller for thermal.
  38. * We probably should reserve the bit 0x80 for this use.
  39. * To keep the number of these types low we should also use the same code for all ASICs (i.e. do not distinguish RV6xx and RV7xx Internal here).
  40. * The driver can pick the correct internal controller based on the ASIC.
  41. */
  42. #define ATOM_TONGA_PP_THERMALCONTROLLER_ADT7473_WITH_INTERNAL 0x89 /* ADT7473 Fan Control + Internal Thermal Controller */
  43. #define ATOM_TONGA_PP_THERMALCONTROLLER_EMC2103_WITH_INTERNAL 0x8D /* EMC2103 Fan Control + Internal Thermal Controller */
  44. /*/* ATOM_TONGA_POWERPLAYTABLE::ulPlatformCaps */
  45. #define ATOM_TONGA_PP_PLATFORM_CAP_VDDGFX_CONTROL 0x1 /* This cap indicates whether vddgfx will be a separated power rail. */
  46. #define ATOM_TONGA_PP_PLATFORM_CAP_POWERPLAY 0x2 /* This cap indicates whether this is a mobile part and CCC need to show Powerplay page. */
  47. #define ATOM_TONGA_PP_PLATFORM_CAP_SBIOSPOWERSOURCE 0x4 /* This cap indicates whether power source notificaiton is done by SBIOS directly. */
  48. #define ATOM_TONGA_PP_PLATFORM_CAP_DISABLE_VOLTAGE_ISLAND 0x8 /* Enable the option to overwrite voltage island feature to be disabled, regardless of VddGfx power rail support. */
  49. #define ____RETIRE16____ 0x10
  50. #define ATOM_TONGA_PP_PLATFORM_CAP_HARDWAREDC 0x20 /* This cap indicates whether power source notificaiton is done by GPIO directly. */
  51. #define ____RETIRE64____ 0x40
  52. #define ____RETIRE128____ 0x80
  53. #define ____RETIRE256____ 0x100
  54. #define ____RETIRE512____ 0x200
  55. #define ____RETIRE1024____ 0x400
  56. #define ____RETIRE2048____ 0x800
  57. #define ATOM_TONGA_PP_PLATFORM_CAP_MVDD_CONTROL 0x1000 /* This cap indicates dynamic MVDD is required. Uncheck to disable it. */
  58. #define ____RETIRE2000____ 0x2000
  59. #define ____RETIRE4000____ 0x4000
  60. #define ATOM_TONGA_PP_PLATFORM_CAP_VDDCI_CONTROL 0x8000 /* This cap indicates dynamic VDDCI is required. Uncheck to disable it. */
  61. #define ____RETIRE10000____ 0x10000
  62. #define ATOM_TONGA_PP_PLATFORM_CAP_BACO 0x20000 /* Enable to indicate the driver supports BACO state. */
  63. #define ATOM_TONGA_PP_PLATFORM_CAP_OUTPUT_THERMAL2GPIO17 0x100000 /* Enable to indicate the driver supports thermal2GPIO17. */
  64. #define ATOM_TONGA_PP_PLATFORM_COMBINE_PCC_WITH_THERMAL_SIGNAL 0x1000000 /* Enable to indicate if thermal and PCC are sharing the same GPIO */
  65. #define ATOM_TONGA_PLATFORM_LOAD_POST_PRODUCTION_FIRMWARE 0x2000000
  66. /* ATOM_PPLIB_NONCLOCK_INFO::usClassification */
  67. #define ATOM_PPLIB_CLASSIFICATION_UI_MASK 0x0007
  68. #define ATOM_PPLIB_CLASSIFICATION_UI_SHIFT 0
  69. #define ATOM_PPLIB_CLASSIFICATION_UI_NONE 0
  70. #define ATOM_PPLIB_CLASSIFICATION_UI_BATTERY 1
  71. #define ATOM_PPLIB_CLASSIFICATION_UI_BALANCED 3
  72. #define ATOM_PPLIB_CLASSIFICATION_UI_PERFORMANCE 5
  73. /* 2, 4, 6, 7 are reserved */
  74. #define ATOM_PPLIB_CLASSIFICATION_BOOT 0x0008
  75. #define ATOM_PPLIB_CLASSIFICATION_THERMAL 0x0010
  76. #define ATOM_PPLIB_CLASSIFICATION_LIMITEDPOWERSOURCE 0x0020
  77. #define ATOM_PPLIB_CLASSIFICATION_REST 0x0040
  78. #define ATOM_PPLIB_CLASSIFICATION_FORCED 0x0080
  79. #define ATOM_PPLIB_CLASSIFICATION_ACPI 0x1000
  80. /* ATOM_PPLIB_NONCLOCK_INFO::usClassification2 */
  81. #define ATOM_PPLIB_CLASSIFICATION2_LIMITEDPOWERSOURCE_2 0x0001
  82. #define ATOM_Tonga_DISALLOW_ON_DC 0x00004000
  83. #define ATOM_Tonga_ENABLE_VARIBRIGHT 0x00008000
  84. #define ATOM_Tonga_TABLE_REVISION_TONGA 7
  85. typedef struct _ATOM_Tonga_POWERPLAYTABLE {
  86. ATOM_COMMON_TABLE_HEADER sHeader;
  87. UCHAR ucTableRevision;
  88. USHORT usTableSize; /*the size of header structure */
  89. ULONG ulGoldenPPID;
  90. ULONG ulGoldenRevision;
  91. USHORT usFormatID;
  92. USHORT usVoltageTime; /*in microseconds */
  93. ULONG ulPlatformCaps; /*See ATOM_Tonga_CAPS_* */
  94. ULONG ulMaxODEngineClock; /*For Overdrive. */
  95. ULONG ulMaxODMemoryClock; /*For Overdrive. */
  96. USHORT usPowerControlLimit;
  97. USHORT usUlvVoltageOffset; /*in mv units */
  98. USHORT usStateArrayOffset; /*points to ATOM_Tonga_State_Array */
  99. USHORT usFanTableOffset; /*points to ATOM_Tonga_Fan_Table */
  100. USHORT usThermalControllerOffset; /*points to ATOM_Tonga_Thermal_Controller */
  101. USHORT usReserv; /*CustomThermalPolicy removed for Tonga. Keep this filed as reserved. */
  102. USHORT usMclkDependencyTableOffset; /*points to ATOM_Tonga_MCLK_Dependency_Table */
  103. USHORT usSclkDependencyTableOffset; /*points to ATOM_Tonga_SCLK_Dependency_Table */
  104. USHORT usVddcLookupTableOffset; /*points to ATOM_Tonga_Voltage_Lookup_Table */
  105. USHORT usVddgfxLookupTableOffset; /*points to ATOM_Tonga_Voltage_Lookup_Table */
  106. USHORT usMMDependencyTableOffset; /*points to ATOM_Tonga_MM_Dependency_Table */
  107. USHORT usVCEStateTableOffset; /*points to ATOM_Tonga_VCE_State_Table; */
  108. USHORT usPPMTableOffset; /*points to ATOM_Tonga_PPM_Table */
  109. USHORT usPowerTuneTableOffset; /*points to ATOM_PowerTune_Table */
  110. USHORT usHardLimitTableOffset; /*points to ATOM_Tonga_Hard_Limit_Table */
  111. USHORT usPCIETableOffset; /*points to ATOM_Tonga_PCIE_Table */
  112. USHORT usGPIOTableOffset; /*points to ATOM_Tonga_GPIO_Table */
  113. USHORT usReserved[6]; /*TODO: modify reserved size to fit structure aligning */
  114. } ATOM_Tonga_POWERPLAYTABLE;
  115. typedef struct _ATOM_Tonga_State {
  116. UCHAR ucEngineClockIndexHigh;
  117. UCHAR ucEngineClockIndexLow;
  118. UCHAR ucMemoryClockIndexHigh;
  119. UCHAR ucMemoryClockIndexLow;
  120. UCHAR ucPCIEGenLow;
  121. UCHAR ucPCIEGenHigh;
  122. UCHAR ucPCIELaneLow;
  123. UCHAR ucPCIELaneHigh;
  124. USHORT usClassification;
  125. ULONG ulCapsAndSettings;
  126. USHORT usClassification2;
  127. UCHAR ucUnused[4];
  128. } ATOM_Tonga_State;
  129. typedef struct _ATOM_Tonga_State_Array {
  130. UCHAR ucRevId;
  131. UCHAR ucNumEntries; /* Number of entries. */
  132. ATOM_Tonga_State entries[1]; /* Dynamically allocate entries. */
  133. } ATOM_Tonga_State_Array;
  134. typedef struct _ATOM_Tonga_MCLK_Dependency_Record {
  135. UCHAR ucVddcInd; /* Vddc voltage */
  136. USHORT usVddci;
  137. USHORT usVddgfxOffset; /* Offset relative to Vddc voltage */
  138. USHORT usMvdd;
  139. ULONG ulMclk;
  140. USHORT usReserved;
  141. } ATOM_Tonga_MCLK_Dependency_Record;
  142. typedef struct _ATOM_Tonga_MCLK_Dependency_Table {
  143. UCHAR ucRevId;
  144. UCHAR ucNumEntries; /* Number of entries. */
  145. ATOM_Tonga_MCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
  146. } ATOM_Tonga_MCLK_Dependency_Table;
  147. typedef struct _ATOM_Tonga_SCLK_Dependency_Record {
  148. UCHAR ucVddInd; /* Base voltage */
  149. USHORT usVddcOffset; /* Offset relative to base voltage */
  150. ULONG ulSclk;
  151. USHORT usEdcCurrent;
  152. UCHAR ucReliabilityTemperature;
  153. UCHAR ucCKSVOffsetandDisable; /* Bits 0~6: Voltage offset for CKS, Bit 7: Disable/enable for the SCLK level. */
  154. } ATOM_Tonga_SCLK_Dependency_Record;
  155. typedef struct _ATOM_Tonga_SCLK_Dependency_Table {
  156. UCHAR ucRevId;
  157. UCHAR ucNumEntries; /* Number of entries. */
  158. ATOM_Tonga_SCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
  159. } ATOM_Tonga_SCLK_Dependency_Table;
  160. typedef struct _ATOM_Polaris_SCLK_Dependency_Record {
  161. UCHAR ucVddInd; /* Base voltage */
  162. USHORT usVddcOffset; /* Offset relative to base voltage */
  163. ULONG ulSclk;
  164. USHORT usEdcCurrent;
  165. UCHAR ucReliabilityTemperature;
  166. UCHAR ucCKSVOffsetandDisable; /* Bits 0~6: Voltage offset for CKS, Bit 7: Disable/enable for the SCLK level. */
  167. ULONG ulSclkOffset;
  168. } ATOM_Polaris_SCLK_Dependency_Record;
  169. typedef struct _ATOM_Polaris_SCLK_Dependency_Table {
  170. UCHAR ucRevId;
  171. UCHAR ucNumEntries; /* Number of entries. */
  172. ATOM_Polaris_SCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
  173. } ATOM_Polaris_SCLK_Dependency_Table;
  174. typedef struct _ATOM_Tonga_PCIE_Record {
  175. UCHAR ucPCIEGenSpeed;
  176. UCHAR usPCIELaneWidth;
  177. UCHAR ucReserved[2];
  178. } ATOM_Tonga_PCIE_Record;
  179. typedef struct _ATOM_Tonga_PCIE_Table {
  180. UCHAR ucRevId;
  181. UCHAR ucNumEntries; /* Number of entries. */
  182. ATOM_Tonga_PCIE_Record entries[1]; /* Dynamically allocate entries. */
  183. } ATOM_Tonga_PCIE_Table;
  184. typedef struct _ATOM_Polaris10_PCIE_Record {
  185. UCHAR ucPCIEGenSpeed;
  186. UCHAR usPCIELaneWidth;
  187. UCHAR ucReserved[2];
  188. ULONG ulPCIE_Sclk;
  189. } ATOM_Polaris10_PCIE_Record;
  190. typedef struct _ATOM_Polaris10_PCIE_Table {
  191. UCHAR ucRevId;
  192. UCHAR ucNumEntries; /* Number of entries. */
  193. ATOM_Polaris10_PCIE_Record entries[1]; /* Dynamically allocate entries. */
  194. } ATOM_Polaris10_PCIE_Table;
  195. typedef struct _ATOM_Tonga_MM_Dependency_Record {
  196. UCHAR ucVddcInd; /* VDDC voltage */
  197. USHORT usVddgfxOffset; /* Offset relative to VDDC voltage */
  198. ULONG ulDClk; /* UVD D-clock */
  199. ULONG ulVClk; /* UVD V-clock */
  200. ULONG ulEClk; /* VCE clock */
  201. ULONG ulAClk; /* ACP clock */
  202. ULONG ulSAMUClk; /* SAMU clock */
  203. } ATOM_Tonga_MM_Dependency_Record;
  204. typedef struct _ATOM_Tonga_MM_Dependency_Table {
  205. UCHAR ucRevId;
  206. UCHAR ucNumEntries; /* Number of entries. */
  207. ATOM_Tonga_MM_Dependency_Record entries[1]; /* Dynamically allocate entries. */
  208. } ATOM_Tonga_MM_Dependency_Table;
  209. typedef struct _ATOM_Tonga_Voltage_Lookup_Record {
  210. USHORT usVdd; /* Base voltage */
  211. USHORT usCACLow;
  212. USHORT usCACMid;
  213. USHORT usCACHigh;
  214. } ATOM_Tonga_Voltage_Lookup_Record;
  215. typedef struct _ATOM_Tonga_Voltage_Lookup_Table {
  216. UCHAR ucRevId;
  217. UCHAR ucNumEntries; /* Number of entries. */
  218. ATOM_Tonga_Voltage_Lookup_Record entries[1]; /* Dynamically allocate entries. */
  219. } ATOM_Tonga_Voltage_Lookup_Table;
  220. typedef struct _ATOM_Tonga_Fan_Table {
  221. UCHAR ucRevId; /* Change this if the table format changes or version changes so that the other fields are not the same. */
  222. UCHAR ucTHyst; /* Temperature hysteresis. Integer. */
  223. USHORT usTMin; /* The temperature, in 0.01 centigrades, below which we just run at a minimal PWM. */
  224. USHORT usTMed; /* The middle temperature where we change slopes. */
  225. USHORT usTHigh; /* The high point above TMed for adjusting the second slope. */
  226. USHORT usPWMMin; /* The minimum PWM value in percent (0.01% increments). */
  227. USHORT usPWMMed; /* The PWM value (in percent) at TMed. */
  228. USHORT usPWMHigh; /* The PWM value at THigh. */
  229. USHORT usTMax; /* The max temperature */
  230. UCHAR ucFanControlMode; /* Legacy or Fuzzy Fan mode */
  231. USHORT usFanPWMMax; /* Maximum allowed fan power in percent */
  232. USHORT usFanOutputSensitivity; /* Sensitivity of fan reaction to temepature changes */
  233. USHORT usFanRPMMax; /* The default value in RPM */
  234. ULONG ulMinFanSCLKAcousticLimit; /* Minimum Fan Controller SCLK Frequency Acoustic Limit. */
  235. UCHAR ucTargetTemperature; /* Advanced fan controller target temperature. */
  236. UCHAR ucMinimumPWMLimit; /* The minimum PWM that the advanced fan controller can set. This should be set to the highest PWM that will run the fan at its lowest RPM. */
  237. USHORT usReserved;
  238. } ATOM_Tonga_Fan_Table;
  239. typedef struct _ATOM_Fiji_Fan_Table {
  240. UCHAR ucRevId; /* Change this if the table format changes or version changes so that the other fields are not the same. */
  241. UCHAR ucTHyst; /* Temperature hysteresis. Integer. */
  242. USHORT usTMin; /* The temperature, in 0.01 centigrades, below which we just run at a minimal PWM. */
  243. USHORT usTMed; /* The middle temperature where we change slopes. */
  244. USHORT usTHigh; /* The high point above TMed for adjusting the second slope. */
  245. USHORT usPWMMin; /* The minimum PWM value in percent (0.01% increments). */
  246. USHORT usPWMMed; /* The PWM value (in percent) at TMed. */
  247. USHORT usPWMHigh; /* The PWM value at THigh. */
  248. USHORT usTMax; /* The max temperature */
  249. UCHAR ucFanControlMode; /* Legacy or Fuzzy Fan mode */
  250. USHORT usFanPWMMax; /* Maximum allowed fan power in percent */
  251. USHORT usFanOutputSensitivity; /* Sensitivity of fan reaction to temepature changes */
  252. USHORT usFanRPMMax; /* The default value in RPM */
  253. ULONG ulMinFanSCLKAcousticLimit; /* Minimum Fan Controller SCLK Frequency Acoustic Limit. */
  254. UCHAR ucTargetTemperature; /* Advanced fan controller target temperature. */
  255. UCHAR ucMinimumPWMLimit; /* The minimum PWM that the advanced fan controller can set. This should be set to the highest PWM that will run the fan at its lowest RPM. */
  256. USHORT usFanGainEdge;
  257. USHORT usFanGainHotspot;
  258. USHORT usFanGainLiquid;
  259. USHORT usFanGainVrVddc;
  260. USHORT usFanGainVrMvdd;
  261. USHORT usFanGainPlx;
  262. USHORT usFanGainHbm;
  263. USHORT usReserved;
  264. } ATOM_Fiji_Fan_Table;
  265. typedef struct _ATOM_Tonga_Thermal_Controller {
  266. UCHAR ucRevId;
  267. UCHAR ucType; /* one of ATOM_TONGA_PP_THERMALCONTROLLER_* */
  268. UCHAR ucI2cLine; /* as interpreted by DAL I2C */
  269. UCHAR ucI2cAddress;
  270. UCHAR ucFanParameters; /* Fan Control Parameters. */
  271. UCHAR ucFanMinRPM; /* Fan Minimum RPM (hundreds) -- for display purposes only. */
  272. UCHAR ucFanMaxRPM; /* Fan Maximum RPM (hundreds) -- for display purposes only. */
  273. UCHAR ucReserved;
  274. UCHAR ucFlags; /* to be defined */
  275. } ATOM_Tonga_Thermal_Controller;
  276. typedef struct _ATOM_Tonga_VCE_State_Record {
  277. UCHAR ucVCEClockIndex; /*index into usVCEDependencyTableOffset of 'ATOM_Tonga_MM_Dependency_Table' type */
  278. UCHAR ucFlag; /* 2 bits indicates memory p-states */
  279. UCHAR ucSCLKIndex; /*index into ATOM_Tonga_SCLK_Dependency_Table */
  280. UCHAR ucMCLKIndex; /*index into ATOM_Tonga_MCLK_Dependency_Table */
  281. } ATOM_Tonga_VCE_State_Record;
  282. typedef struct _ATOM_Tonga_VCE_State_Table {
  283. UCHAR ucRevId;
  284. UCHAR ucNumEntries;
  285. ATOM_Tonga_VCE_State_Record entries[1];
  286. } ATOM_Tonga_VCE_State_Table;
  287. typedef struct _ATOM_Tonga_PowerTune_Table {
  288. UCHAR ucRevId;
  289. USHORT usTDP;
  290. USHORT usConfigurableTDP;
  291. USHORT usTDC;
  292. USHORT usBatteryPowerLimit;
  293. USHORT usSmallPowerLimit;
  294. USHORT usLowCACLeakage;
  295. USHORT usHighCACLeakage;
  296. USHORT usMaximumPowerDeliveryLimit;
  297. USHORT usTjMax;
  298. USHORT usPowerTuneDataSetID;
  299. USHORT usEDCLimit;
  300. USHORT usSoftwareShutdownTemp;
  301. USHORT usClockStretchAmount;
  302. USHORT usReserve[2];
  303. } ATOM_Tonga_PowerTune_Table;
  304. typedef struct _ATOM_Fiji_PowerTune_Table {
  305. UCHAR ucRevId;
  306. USHORT usTDP;
  307. USHORT usConfigurableTDP;
  308. USHORT usTDC;
  309. USHORT usBatteryPowerLimit;
  310. USHORT usSmallPowerLimit;
  311. USHORT usLowCACLeakage;
  312. USHORT usHighCACLeakage;
  313. USHORT usMaximumPowerDeliveryLimit;
  314. USHORT usTjMax; /* For Fiji, this is also usTemperatureLimitEdge; */
  315. USHORT usPowerTuneDataSetID;
  316. USHORT usEDCLimit;
  317. USHORT usSoftwareShutdownTemp;
  318. USHORT usClockStretchAmount;
  319. USHORT usTemperatureLimitHotspot; /*The following are added for Fiji */
  320. USHORT usTemperatureLimitLiquid1;
  321. USHORT usTemperatureLimitLiquid2;
  322. USHORT usTemperatureLimitVrVddc;
  323. USHORT usTemperatureLimitVrMvdd;
  324. USHORT usTemperatureLimitPlx;
  325. UCHAR ucLiquid1_I2C_address; /*Liquid */
  326. UCHAR ucLiquid2_I2C_address;
  327. UCHAR ucLiquid_I2C_Line;
  328. UCHAR ucVr_I2C_address; /*VR */
  329. UCHAR ucVr_I2C_Line;
  330. UCHAR ucPlx_I2C_address; /*PLX */
  331. UCHAR ucPlx_I2C_Line;
  332. USHORT usReserved;
  333. } ATOM_Fiji_PowerTune_Table;
  334. #define ATOM_PPM_A_A 1
  335. #define ATOM_PPM_A_I 2
  336. typedef struct _ATOM_Tonga_PPM_Table {
  337. UCHAR ucRevId;
  338. UCHAR ucPpmDesign; /*A+I or A+A */
  339. USHORT usCpuCoreNumber;
  340. ULONG ulPlatformTDP;
  341. ULONG ulSmallACPlatformTDP;
  342. ULONG ulPlatformTDC;
  343. ULONG ulSmallACPlatformTDC;
  344. ULONG ulApuTDP;
  345. ULONG ulDGpuTDP;
  346. ULONG ulDGpuUlvPower;
  347. ULONG ulTjmax;
  348. } ATOM_Tonga_PPM_Table;
  349. typedef struct _ATOM_Tonga_Hard_Limit_Record {
  350. ULONG ulSCLKLimit;
  351. ULONG ulMCLKLimit;
  352. USHORT usVddcLimit;
  353. USHORT usVddciLimit;
  354. USHORT usVddgfxLimit;
  355. } ATOM_Tonga_Hard_Limit_Record;
  356. typedef struct _ATOM_Tonga_Hard_Limit_Table {
  357. UCHAR ucRevId;
  358. UCHAR ucNumEntries;
  359. ATOM_Tonga_Hard_Limit_Record entries[1];
  360. } ATOM_Tonga_Hard_Limit_Table;
  361. typedef struct _ATOM_Tonga_GPIO_Table {
  362. UCHAR ucRevId;
  363. UCHAR ucVRHotTriggeredSclkDpmIndex; /* If VRHot signal is triggered SCLK will be limited to this DPM level */
  364. UCHAR ucReserve[5];
  365. } ATOM_Tonga_GPIO_Table;
  366. typedef struct _PPTable_Generic_SubTable_Header {
  367. UCHAR ucRevId;
  368. } PPTable_Generic_SubTable_Header;
  369. #pragma pack(pop)
  370. #endif