gupsterg

defs

Jul 7th, 2015
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. ATOM_VOLTAGE_OBJECT
  2.  
  3. UCHAR ucVoltageType; //Indicate Voltage Source: VDDC, MVDDC, MVDDQ or MVDDCI
  4. UCHAR ucSize; //Size of Object
  5.  
  6. ATOM_VOLTAGE_CONTROL asControl; //describ how to control
  7.  
  8. UCHAR ucVoltageControlId; //Indicate it is controlled by I2C or GPIO or HW state machine
  9. UCHAR ucVoltageControlI2cLine;
  10. UCHAR ucVoltageControlAddress;
  11. UCHAR ucVoltageControlOffset;
  12. USHORT usGpioPin_AIndex; //GPIO_PAD register index
  13. UCHAR ucGpioPinBitShift[9]; //at most 8 pin support 255 VIDs, termintate with 0xff
  14. UCHAR ucReserved;
  15.  
  16. // Define ucVoltageControlId
  17. #define VOLTAGE_CONTROLLED_BY_HW 0x00
  18. #define VOLTAGE_CONTROLLED_BY_I2C_MASK 0x7F
  19. #define VOLTAGE_CONTROLLED_BY_GPIO 0x80
  20. #define VOLTAGE_CONTROL_ID_LM64 0x01 //I2C control, used for R5xx Core Voltage
  21. #define VOLTAGE_CONTROL_ID_DAC 0x02 //I2C control, used for R5xx/R6xx MVDDC,MVDDQ or VDDCI
  22. #define VOLTAGE_CONTROL_ID_VT116xM 0x03 //I2C control, used for R6xx Core Voltage
  23. #define VOLTAGE_CONTROL_ID_DS4402 0x04
  24. #define VOLTAGE_CONTROL_ID_UP6266 0x05
  25. #define VOLTAGE_CONTROL_ID_SCORPIO 0x06
  26. #define VOLTAGE_CONTROL_ID_VT1556M 0x07
  27. #define VOLTAGE_CONTROL_ID_CHL822x 0x08
  28. #define VOLTAGE_CONTROL_ID_VT1586M 0x09
  29. #define VOLTAGE_CONTROL_ID_UP1637 0x0A
  30. #define VOLTAGE_CONTROL_ID_CHL8214 0x0B
  31. #define VOLTAGE_CONTROL_ID_UP1801 0x0C
  32. #define VOLTAGE_CONTROL_ID_ST6788A 0x0D
  33. #define VOLTAGE_CONTROL_ID_CHLIR3564SVI2 0x0E
  34. #define VOLTAGE_CONTROL_ID_AD527x 0x0F
  35. #define VOLTAGE_CONTROL_ID_NCP81022 0x10
  36. #define VOLTAGE_CONTROL_ID_LTC2635 0x11
  37.  
  38. ATOM_VOLTAGE_FORMULA asFormula; //Indicate How to convert real Voltage to VID
  39.  
  40. USHORT usVoltageBaseLevel; // In number of 1mv unit
  41. USHORT usVoltageStep; // Indicating in how many mv increament is one step, 1mv unit
  42. UCHAR ucNumOfVoltageEntries; // Number of Voltage Entry, which indicate max Voltage
  43. UCHAR ucFlag; // bit0=0 :step is 1mv =1 0.5mv
  44. UCHAR ucBaseVID ; // if there is no lookup table, VID= BaseVID + ( Vol - BaseLevle ) /VoltageStep
  45. UCHAR ucReserved;
  46. UCHAR ucVIDAdjustEntries[32]; // 32 is for allocation, the actual number of entry is present at ucNumOfVoltageEntries
Advertisement
Add Comment
Please, Sign In to add comment