OpenBIC
OpenSource Bridge-IC
plat_sensor_table.h File Reference
#include <stdint.h>
Include dependency graph for plat_sensor_table.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TMP75_MB_ADDR   (0x92 >> 1)
 
#define TMP75_ASIC_ADDR   (0x98 >> 1)
 
#define ASIC_ADDR   (0x00 >> 1)
 
#define INA233_12V_ADDR   (0x8A >> 1)
 
#define INA233_3V3_ADDR   (0x80 >> 1)
 
#define VR_A0V9_ADDR   (0xC8 >> 1)
 
#define VR_A0V8_ADDR   (0xC8 >> 1)
 
#define VR_D0V8_ADDR   (0xB0 >> 1)
 
#define VR_VDDQAB_ADDR   (0xB0 >> 1)
 
#define VR_VDDQCD_ADDR   (0xB4 >> 1)
 
#define ASIC_OFFSET   0x00
 
#define TMP75_TEMP_OFFSET   0x00
 
#define VR_PAGE_OFFSET   0x00
 
#define SMBUS_VOL_CMD   0x8B
 
#define SMBUS_CUR_CMD   0x8C
 
#define SMBUS_TEMP_CMD   0x8D
 
#define SMBUS_PWR_CMD   0x96
 
#define CHIP_TEMP_OFFSET   0x00
 
#define DIMM_TEMP_OFFSET   0x01
 
#define DIMMA_SPD_ADDR   0x50
 
#define DIMMB_SPD_ADDR   0x51
 
#define DIMMC_SPD_ADDR   0x52
 
#define DIMMD_SPD_ADDR   0x53
 
#define SENSOR_NUM_TEMP_TMP75   0x50
 
#define SENSOR_NUM_TEMP_CXL   0x51
 
#define SENSOR_NUM_TEMP_DIMMA   0x53
 
#define SENSOR_NUM_TEMP_DIMMB   0x54
 
#define SENSOR_NUM_TEMP_DIMMC   0x55
 
#define SENSOR_NUM_POWER_ERROR   0x56
 
#define SENSOR_NUM_TEMP_DIMMD   0x57
 
#define SENSOR_NUM_TEMP_VR0V9A   0x58
 
#define SENSOR_NUM_TEMP_VR0V8A   0x59
 
#define SENSOR_NUM_TEMP_VR0V8D   0x5A
 
#define SENSOR_NUM_TEMP_VRVDDQAB   0x5B
 
#define SENSOR_NUM_TEMP_VRVDDQCD   0x5C
 
#define SENSOR_NUM_VOL_STBY12V   0x5D
 
#define SENSOR_NUM_VOL_STBY3V3   0x5E
 
#define SENSOR_NUM_VOL_STBY5V   0x5F
 
#define SENSOR_NUM_VOL_STBY1V2   0x60
 
#define SENSOR_NUM_VOL_ASIC_1V8   0x61
 
#define SENSOR_NUM_VOL_VR0V9A   0x62
 
#define SENSOR_NUM_VOL_VR0V8A   0x64
 
#define SENSOR_NUM_VOL_VR0V8D   0x65
 
#define SENSOR_NUM_VOL_VRVDDQAB   0x66
 
#define SENSOR_NUM_VOL_VRVDDQCD   0x67
 
#define SENSOR_NUM_VOL_PVPP_AB   0x68
 
#define SENSOR_NUM_VOL_PVPP_CD   0x69
 
#define SENSOR_NUM_VOL_PVTT_AB   0x6A
 
#define SENSOR_NUM_VOL_PVTT_CD   0x6B
 
#define SENSOR_NUM_CUR_STBY12V   0x6C
 
#define SENSOR_NUM_CUR_STBY3V3   0x6D
 
#define SENSOR_NUM_CUR_VR0V9A   0x6E
 
#define SENSOR_NUM_CUR_VR0V8A   0x6F
 
#define SENSOR_NUM_CUR_VR0V8D   0x70
 
#define SENSOR_NUM_CUR_VRVDDQAB   0x71
 
#define SENSOR_NUM_CUR_VRVDDQCD   0x72
 
#define SENSOR_NUM_VR_ALERT   0x72
 
#define SENSOR_NUM_PWR_STBY12V   0x73
 
#define SENSOR_NUM_PWR_STBY3V3   0x74
 
#define SENSOR_NUM_PWR_VR0V9A   0x75
 
#define SENSOR_NUM_PWR_VR0V8A   0x76
 
#define SENSOR_NUM_PWR_VR0V8D   0x77
 
#define SENSOR_NUM_PWR_VRVDDQAB   0x78
 
#define SENSOR_NUM_PWR_VRVDDQCD   0x79
 

Enumerations

enum  { VR_INF = 0 , VR_RNS , PWR_INA233 , PWR_SGY }
 

Functions

uint8_t plat_get_config_size ()
 
void load_sensor_config (void)
 
int check_vr_type (void)
 

Macro Definition Documentation

◆ ASIC_ADDR

#define ASIC_ADDR   (0x00 >> 1)

◆ ASIC_OFFSET

#define ASIC_OFFSET   0x00

◆ CHIP_TEMP_OFFSET

#define CHIP_TEMP_OFFSET   0x00

◆ DIMM_TEMP_OFFSET

#define DIMM_TEMP_OFFSET   0x01

◆ DIMMA_SPD_ADDR

#define DIMMA_SPD_ADDR   0x50

◆ DIMMB_SPD_ADDR

#define DIMMB_SPD_ADDR   0x51

◆ DIMMC_SPD_ADDR

#define DIMMC_SPD_ADDR   0x52

◆ DIMMD_SPD_ADDR

#define DIMMD_SPD_ADDR   0x53

◆ INA233_12V_ADDR

#define INA233_12V_ADDR   (0x8A >> 1)

◆ INA233_3V3_ADDR

#define INA233_3V3_ADDR   (0x80 >> 1)

◆ SENSOR_NUM_CUR_STBY12V

#define SENSOR_NUM_CUR_STBY12V   0x6C

◆ SENSOR_NUM_CUR_STBY3V3

#define SENSOR_NUM_CUR_STBY3V3   0x6D

◆ SENSOR_NUM_CUR_VR0V8A

#define SENSOR_NUM_CUR_VR0V8A   0x6F

◆ SENSOR_NUM_CUR_VR0V8D

#define SENSOR_NUM_CUR_VR0V8D   0x70

◆ SENSOR_NUM_CUR_VR0V9A

#define SENSOR_NUM_CUR_VR0V9A   0x6E

◆ SENSOR_NUM_CUR_VRVDDQAB

#define SENSOR_NUM_CUR_VRVDDQAB   0x71

◆ SENSOR_NUM_CUR_VRVDDQCD

#define SENSOR_NUM_CUR_VRVDDQCD   0x72

◆ SENSOR_NUM_POWER_ERROR

#define SENSOR_NUM_POWER_ERROR   0x56

◆ SENSOR_NUM_PWR_STBY12V

#define SENSOR_NUM_PWR_STBY12V   0x73

◆ SENSOR_NUM_PWR_STBY3V3

#define SENSOR_NUM_PWR_STBY3V3   0x74

◆ SENSOR_NUM_PWR_VR0V8A

#define SENSOR_NUM_PWR_VR0V8A   0x76

◆ SENSOR_NUM_PWR_VR0V8D

#define SENSOR_NUM_PWR_VR0V8D   0x77

◆ SENSOR_NUM_PWR_VR0V9A

#define SENSOR_NUM_PWR_VR0V9A   0x75

◆ SENSOR_NUM_PWR_VRVDDQAB

#define SENSOR_NUM_PWR_VRVDDQAB   0x78

◆ SENSOR_NUM_PWR_VRVDDQCD

#define SENSOR_NUM_PWR_VRVDDQCD   0x79

◆ SENSOR_NUM_TEMP_CXL

#define SENSOR_NUM_TEMP_CXL   0x51

◆ SENSOR_NUM_TEMP_DIMMA

#define SENSOR_NUM_TEMP_DIMMA   0x53

◆ SENSOR_NUM_TEMP_DIMMB

#define SENSOR_NUM_TEMP_DIMMB   0x54

◆ SENSOR_NUM_TEMP_DIMMC

#define SENSOR_NUM_TEMP_DIMMC   0x55

◆ SENSOR_NUM_TEMP_DIMMD

#define SENSOR_NUM_TEMP_DIMMD   0x57

◆ SENSOR_NUM_TEMP_TMP75

#define SENSOR_NUM_TEMP_TMP75   0x50

◆ SENSOR_NUM_TEMP_VR0V8A

#define SENSOR_NUM_TEMP_VR0V8A   0x59

◆ SENSOR_NUM_TEMP_VR0V8D

#define SENSOR_NUM_TEMP_VR0V8D   0x5A

◆ SENSOR_NUM_TEMP_VR0V9A

#define SENSOR_NUM_TEMP_VR0V9A   0x58

◆ SENSOR_NUM_TEMP_VRVDDQAB

#define SENSOR_NUM_TEMP_VRVDDQAB   0x5B

◆ SENSOR_NUM_TEMP_VRVDDQCD

#define SENSOR_NUM_TEMP_VRVDDQCD   0x5C

◆ SENSOR_NUM_VOL_ASIC_1V8

#define SENSOR_NUM_VOL_ASIC_1V8   0x61

◆ SENSOR_NUM_VOL_PVPP_AB

#define SENSOR_NUM_VOL_PVPP_AB   0x68

◆ SENSOR_NUM_VOL_PVPP_CD

#define SENSOR_NUM_VOL_PVPP_CD   0x69

◆ SENSOR_NUM_VOL_PVTT_AB

#define SENSOR_NUM_VOL_PVTT_AB   0x6A

◆ SENSOR_NUM_VOL_PVTT_CD

#define SENSOR_NUM_VOL_PVTT_CD   0x6B

◆ SENSOR_NUM_VOL_STBY12V

#define SENSOR_NUM_VOL_STBY12V   0x5D

◆ SENSOR_NUM_VOL_STBY1V2

#define SENSOR_NUM_VOL_STBY1V2   0x60

◆ SENSOR_NUM_VOL_STBY3V3

#define SENSOR_NUM_VOL_STBY3V3   0x5E

◆ SENSOR_NUM_VOL_STBY5V

#define SENSOR_NUM_VOL_STBY5V   0x5F

◆ SENSOR_NUM_VOL_VR0V8A

#define SENSOR_NUM_VOL_VR0V8A   0x64

◆ SENSOR_NUM_VOL_VR0V8D

#define SENSOR_NUM_VOL_VR0V8D   0x65

◆ SENSOR_NUM_VOL_VR0V9A

#define SENSOR_NUM_VOL_VR0V9A   0x62

◆ SENSOR_NUM_VOL_VRVDDQAB

#define SENSOR_NUM_VOL_VRVDDQAB   0x66

◆ SENSOR_NUM_VOL_VRVDDQCD

#define SENSOR_NUM_VOL_VRVDDQCD   0x67

◆ SENSOR_NUM_VR_ALERT

#define SENSOR_NUM_VR_ALERT   0x72

◆ SMBUS_CUR_CMD

#define SMBUS_CUR_CMD   0x8C

◆ SMBUS_PWR_CMD

#define SMBUS_PWR_CMD   0x96

◆ SMBUS_TEMP_CMD

#define SMBUS_TEMP_CMD   0x8D

◆ SMBUS_VOL_CMD

#define SMBUS_VOL_CMD   0x8B

◆ TMP75_ASIC_ADDR

#define TMP75_ASIC_ADDR   (0x98 >> 1)

◆ TMP75_MB_ADDR

#define TMP75_MB_ADDR   (0x92 >> 1)

◆ TMP75_TEMP_OFFSET

#define TMP75_TEMP_OFFSET   0x00

◆ VR_A0V8_ADDR

#define VR_A0V8_ADDR   (0xC8 >> 1)

◆ VR_A0V9_ADDR

#define VR_A0V9_ADDR   (0xC8 >> 1)

◆ VR_D0V8_ADDR

#define VR_D0V8_ADDR   (0xB0 >> 1)

◆ VR_PAGE_OFFSET

#define VR_PAGE_OFFSET   0x00

◆ VR_VDDQAB_ADDR

#define VR_VDDQAB_ADDR   (0xB0 >> 1)

◆ VR_VDDQCD_ADDR

#define VR_VDDQCD_ADDR   (0xB4 >> 1)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VR_INF 
VR_RNS 
PWR_INA233 
PWR_SGY 

Function Documentation

◆ check_vr_type()

int check_vr_type ( void  )
Here is the call graph for this function:

◆ load_sensor_config()

void load_sensor_config ( void  )

◆ plat_get_config_size()

uint8_t plat_get_config_size ( )