OpenBIC
OpenSource Bridge-IC
plat_sensor_table.h File Reference
#include <stdint.h>
#include "sensor.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.

Classes

struct  _dimm_pmic_mapping_cfg
 

Macros

#define INLET_TEP75_ADDR   (0x92 >> 1)
 
#define OUTLET_TEP75_ADDR   (0x98 >> 1)
 
#define FIO_ADDR   (0x90 >> 1)
 
#define HSC_ADM1278_ADDR   (0x22 >> 1)
 
#define HSC_MP5990_ADDR   (0x16 >> 1)
 
#define PVCCIN_ADDR   (0xC0 >> 1)
 
#define EHV_ADDR   (0xC0 >> 1)
 
#define FIVRA_ADDR   (0xDC >> 1)
 
#define INF_ADDR   (0xDC >> 1)
 
#define PVCCD0_ADDR   (0xD4 >> 1)
 
#define PVCCD1_ADDR   (0xD4 >> 1)
 
#define EVT_FIVRA_ADDR   (0xC4 >> 1)
 
#define EVT_PVCCD0_ADDR   (0xE4 >> 1)
 
#define CPU_PECI_ADDR   0x30
 
#define SSD0_ADDR   (0xD4 >> 1)
 
#define SSD0_OFFSET   0x00
 
#define TMP75_TEMP_OFFSET   0x0
 
#define VR_TEMP_OFFSET   0x8D
 
#define VR_VOL_OFFSET   0x8B
 
#define VR_CUR_OFFSET   0x8C
 
#define VR_PWR_OFFSET   0x96
 
#define POLL_TIME_BAT3V   3600
 
#define SENSOR_NUM_MB_INLET_TEMP_C   0x1
 
#define SENSOR_NUM_MB_OUTLET_TEMP_C   0x2
 
#define SENSOR_NUM_FIO_FRONT_TEMP_C   0x3
 
#define SENSOR_NUM_MB_SOC_CPU_TEMP_C   0x4
 
#define SENSOR_NUM_MB_DIMMA0_TEMP_C   0x5
 
#define SENSOR_NUM_MB_DIMMA1_TEMP_C   0x6
 
#define SENSOR_NUM_MB_DIMMA2_TEMP_C   0x7
 
#define SENSOR_NUM_MB_DIMMA3_TEMP_C   0x8
 
#define SENSOR_NUM_MB_DIMMA4_TEMP_C   0x9
 
#define SENSOR_NUM_MB_DIMMA5_TEMP_C   0xA
 
#define SENSOR_NUM_MB_DIMMA6_TEMP_C   0xB
 
#define SENSOR_NUM_MB_DIMMA7_TEMP_C   0xC
 
#define SENSOR_NUM_MB_SSD0_TEMP_C   0xD
 
#define SENSOR_NUM_MB_HSC_TEMP_C   0xE
 
#define SENSOR_NUM_MB_VR_VCCIN_TEMP_C   0xF
 
#define SENSOR_NUM_MB_VR_EHV_TEMP_C   0x10
 
#define SENSOR_NUM_MB_VR_FIVRA_TEMP_C   0x11
 
#define SENSOR_NUM_MB_VR_VCCINF_TEMP_C   0x12
 
#define SENSOR_NUM_MB_VR_VCCD0_TEMP_C   0x13
 
#define SENSOR_NUM_MB_VR_VCCD1_TEMP_C   0x14
 
#define SENSOR_NUM_MB_SOC_THERMAL_MARGIN_C   0x15
 
#define SENSOR_NUM_MB_SOC_TJMAX_C   0x16
 
#define SENSOR_NUM_MB_ADC_P12V_STBY_VOLT_V   0x17
 
#define SENSOR_NUM_MB_ADC_P3V_BAT_VOLT_V   0x18
 
#define SENSOR_NUM_MB_ADC_P3V3_STBY_VOLT_V   0x19
 
#define SENSOR_NUM_MB_ADC_P1V8_STBY_VOLT_V   0x1A
 
#define SENSOR_NUM_MB_ADC_P1V05_STBY_VOLT_V   0x1B
 
#define SENSOR_NUM_MB_HSC_INPUT_VOLT_V   0x1C
 
#define SENSOR_NUM_MB_VR_VCCIN_VOLT_V   0x1D
 
#define SENSOR_NUM_MB_VR_VCCINF_VOLT_V   0x1E
 
#define SENSOR_NUM_MB_VR_FIVRA_VOLT_V   0x1F
 
#define SENSOR_NUM_MB_VR_VCCD0_VOLT_V   0x20
 
#define SENSOR_NUM_MB_VR_VCCD1_VOLT_V   0x21
 
#define SENSOR_NUM_MB_VR_EHV_VOLT_V   0x22
 
#define SENSOR_NUM_MB_ADC_VNN_VOLT_V   0x23
 
#define SENSOR_NUM_MB_ADC_P5V_STBY_VOLT_V   0x24
 
#define SENSOR_NUM_MB_ADC_P12V_DIMM_VOLT_V   0x25
 
#define SENSOR_NUM_MB_ADC_P1V2_STBY_VOLT_V   0x26
 
#define SENSOR_NUM_MB_ADC_P3V3_M2_VOLT_V   0x27
 
#define SENSOR_NUM_MB_HSC_OUTPUT_CURR_A   0x28
 
#define SENSOR_NUM_MB_VR_VCCIN_CURR_A   0x29
 
#define SENSOR_NUM_MB_VR_EHV_CURR_A   0x2A
 
#define SENSOR_NUM_MB_VR_FIVRA_CURR_A   0x2B
 
#define SENSOR_NUM_MB_VR_VCCINF_CURR_A   0x2C
 
#define SENSOR_NUM_MB_VR_VCCD0_CURR_A   0x2D
 
#define SENSOR_NUM_MB_VR_VCCD1_CURR_A   0x2E
 
#define SENSOR_NUM_MB_HSC_INPUT_PWR_W   0x2F
 
#define SENSOR_NUM_MB_VR_VCCIN_PWR_W   0x30
 
#define SENSOR_NUM_MB_VR_EHV_PWR_W   0x31
 
#define SENSOR_NUM_MB_VR_FIVRA_PWR_W   0x32
 
#define SENSOR_NUM_MB_VR_VCCINF_PWR_W   0x33
 
#define SENSOR_NUM_MB_VR_VCCD0_PWR_W   0x34
 
#define SENSOR_NUM_MB_VR_VCCD1_PWR_W   0x35
 
#define SENSOR_NUM_MB_VR_DIMMA0_PMIC_PWR_W   0x36
 
#define SENSOR_NUM_MB_VR_DIMMA1_PMIC_PWR_W   0x37
 
#define SENSOR_NUM_MB_VR_DIMMA2_PMIC_PWR_W   0x38
 
#define SENSOR_NUM_MB_VR_DIMMA3_PMIC_PWR_W   0x39
 
#define SENSOR_NUM_MB_VR_DIMMA4_PMIC_PWR_W   0x3A
 
#define SENSOR_NUM_MB_VR_DIMMA5_PMIC_PWR_W   0x3B
 
#define SENSOR_NUM_MB_VR_DIMMA6_PMIC_PWR_W   0x3C
 
#define SENSOR_NUM_MB_VR_DIMMA7_PMIC_PWR_W   0x3D
 
#define SENSOR_NUM_MB_SOC_CPU_PWR_W   0x3E
 
#define SENSOR_NUM_MB_TOTAL_DIMM_PWR_W   0x3F
 
#define SENSOR_NUM_SYSTEM_STATUS   0x10
 
#define SENSOR_NUM_END_OF_POST   0x11
 
#define SENSOR_NUM_CPU0_THERM_STATUS   0x1C
 
#define SENSOR_NUM_POWER_ERROR   0x56
 
#define SENSOR_NUM_PROC_FAIL   0x65
 
#define SENSOR_NUM_VR_HOT   0xB2
 
#define SENSOR_NUM_CPUDIMM_HOT   0xB3
 
#define SENSOR_NUM_PMIC_ERROR   0xB4
 
#define SENSOR_NUM_CATERR   0xEB
 

Typedefs

typedef struct _dimm_pmic_mapping_cfg dimm_pmic_mapping_cfg
 

Functions

uint8_t get_dimm_status (uint8_t dimm_index)
 

Macro Definition Documentation

◆ CPU_PECI_ADDR

#define CPU_PECI_ADDR   0x30

◆ EHV_ADDR

#define EHV_ADDR   (0xC0 >> 1)

◆ EVT_FIVRA_ADDR

#define EVT_FIVRA_ADDR   (0xC4 >> 1)

◆ EVT_PVCCD0_ADDR

#define EVT_PVCCD0_ADDR   (0xE4 >> 1)

◆ FIO_ADDR

#define FIO_ADDR   (0x90 >> 1)

◆ FIVRA_ADDR

#define FIVRA_ADDR   (0xDC >> 1)

◆ HSC_ADM1278_ADDR

#define HSC_ADM1278_ADDR   (0x22 >> 1)

◆ HSC_MP5990_ADDR

#define HSC_MP5990_ADDR   (0x16 >> 1)

◆ INF_ADDR

#define INF_ADDR   (0xDC >> 1)

◆ INLET_TEP75_ADDR

#define INLET_TEP75_ADDR   (0x92 >> 1)

◆ OUTLET_TEP75_ADDR

#define OUTLET_TEP75_ADDR   (0x98 >> 1)

◆ POLL_TIME_BAT3V

#define POLL_TIME_BAT3V   3600

◆ PVCCD0_ADDR

#define PVCCD0_ADDR   (0xD4 >> 1)

◆ PVCCD1_ADDR

#define PVCCD1_ADDR   (0xD4 >> 1)

◆ PVCCIN_ADDR

#define PVCCIN_ADDR   (0xC0 >> 1)

◆ SENSOR_NUM_CATERR

#define SENSOR_NUM_CATERR   0xEB

◆ SENSOR_NUM_CPU0_THERM_STATUS

#define SENSOR_NUM_CPU0_THERM_STATUS   0x1C

◆ SENSOR_NUM_CPUDIMM_HOT

#define SENSOR_NUM_CPUDIMM_HOT   0xB3

◆ SENSOR_NUM_END_OF_POST

#define SENSOR_NUM_END_OF_POST   0x11

◆ SENSOR_NUM_FIO_FRONT_TEMP_C

#define SENSOR_NUM_FIO_FRONT_TEMP_C   0x3

◆ SENSOR_NUM_MB_ADC_P12V_DIMM_VOLT_V

#define SENSOR_NUM_MB_ADC_P12V_DIMM_VOLT_V   0x25

◆ SENSOR_NUM_MB_ADC_P12V_STBY_VOLT_V

#define SENSOR_NUM_MB_ADC_P12V_STBY_VOLT_V   0x17

◆ SENSOR_NUM_MB_ADC_P1V05_STBY_VOLT_V

#define SENSOR_NUM_MB_ADC_P1V05_STBY_VOLT_V   0x1B

◆ SENSOR_NUM_MB_ADC_P1V2_STBY_VOLT_V

#define SENSOR_NUM_MB_ADC_P1V2_STBY_VOLT_V   0x26

◆ SENSOR_NUM_MB_ADC_P1V8_STBY_VOLT_V

#define SENSOR_NUM_MB_ADC_P1V8_STBY_VOLT_V   0x1A

◆ SENSOR_NUM_MB_ADC_P3V3_M2_VOLT_V

#define SENSOR_NUM_MB_ADC_P3V3_M2_VOLT_V   0x27

◆ SENSOR_NUM_MB_ADC_P3V3_STBY_VOLT_V

#define SENSOR_NUM_MB_ADC_P3V3_STBY_VOLT_V   0x19

◆ SENSOR_NUM_MB_ADC_P3V_BAT_VOLT_V

#define SENSOR_NUM_MB_ADC_P3V_BAT_VOLT_V   0x18

◆ SENSOR_NUM_MB_ADC_P5V_STBY_VOLT_V

#define SENSOR_NUM_MB_ADC_P5V_STBY_VOLT_V   0x24

◆ SENSOR_NUM_MB_ADC_VNN_VOLT_V

#define SENSOR_NUM_MB_ADC_VNN_VOLT_V   0x23

◆ SENSOR_NUM_MB_DIMMA0_TEMP_C

#define SENSOR_NUM_MB_DIMMA0_TEMP_C   0x5

◆ SENSOR_NUM_MB_DIMMA1_TEMP_C

#define SENSOR_NUM_MB_DIMMA1_TEMP_C   0x6

◆ SENSOR_NUM_MB_DIMMA2_TEMP_C

#define SENSOR_NUM_MB_DIMMA2_TEMP_C   0x7

◆ SENSOR_NUM_MB_DIMMA3_TEMP_C

#define SENSOR_NUM_MB_DIMMA3_TEMP_C   0x8

◆ SENSOR_NUM_MB_DIMMA4_TEMP_C

#define SENSOR_NUM_MB_DIMMA4_TEMP_C   0x9

◆ SENSOR_NUM_MB_DIMMA5_TEMP_C

#define SENSOR_NUM_MB_DIMMA5_TEMP_C   0xA

◆ SENSOR_NUM_MB_DIMMA6_TEMP_C

#define SENSOR_NUM_MB_DIMMA6_TEMP_C   0xB

◆ SENSOR_NUM_MB_DIMMA7_TEMP_C

#define SENSOR_NUM_MB_DIMMA7_TEMP_C   0xC

◆ SENSOR_NUM_MB_HSC_INPUT_PWR_W

#define SENSOR_NUM_MB_HSC_INPUT_PWR_W   0x2F

◆ SENSOR_NUM_MB_HSC_INPUT_VOLT_V

#define SENSOR_NUM_MB_HSC_INPUT_VOLT_V   0x1C

◆ SENSOR_NUM_MB_HSC_OUTPUT_CURR_A

#define SENSOR_NUM_MB_HSC_OUTPUT_CURR_A   0x28

◆ SENSOR_NUM_MB_HSC_TEMP_C

#define SENSOR_NUM_MB_HSC_TEMP_C   0xE

◆ SENSOR_NUM_MB_INLET_TEMP_C

#define SENSOR_NUM_MB_INLET_TEMP_C   0x1

◆ SENSOR_NUM_MB_OUTLET_TEMP_C

#define SENSOR_NUM_MB_OUTLET_TEMP_C   0x2

◆ SENSOR_NUM_MB_SOC_CPU_PWR_W

#define SENSOR_NUM_MB_SOC_CPU_PWR_W   0x3E

◆ SENSOR_NUM_MB_SOC_CPU_TEMP_C

#define SENSOR_NUM_MB_SOC_CPU_TEMP_C   0x4

◆ SENSOR_NUM_MB_SOC_THERMAL_MARGIN_C

#define SENSOR_NUM_MB_SOC_THERMAL_MARGIN_C   0x15

◆ SENSOR_NUM_MB_SOC_TJMAX_C

#define SENSOR_NUM_MB_SOC_TJMAX_C   0x16

◆ SENSOR_NUM_MB_SSD0_TEMP_C

#define SENSOR_NUM_MB_SSD0_TEMP_C   0xD

◆ SENSOR_NUM_MB_TOTAL_DIMM_PWR_W

#define SENSOR_NUM_MB_TOTAL_DIMM_PWR_W   0x3F

◆ SENSOR_NUM_MB_VR_DIMMA0_PMIC_PWR_W

#define SENSOR_NUM_MB_VR_DIMMA0_PMIC_PWR_W   0x36

◆ SENSOR_NUM_MB_VR_DIMMA1_PMIC_PWR_W

#define SENSOR_NUM_MB_VR_DIMMA1_PMIC_PWR_W   0x37

◆ SENSOR_NUM_MB_VR_DIMMA2_PMIC_PWR_W

#define SENSOR_NUM_MB_VR_DIMMA2_PMIC_PWR_W   0x38

◆ SENSOR_NUM_MB_VR_DIMMA3_PMIC_PWR_W

#define SENSOR_NUM_MB_VR_DIMMA3_PMIC_PWR_W   0x39

◆ SENSOR_NUM_MB_VR_DIMMA4_PMIC_PWR_W

#define SENSOR_NUM_MB_VR_DIMMA4_PMIC_PWR_W   0x3A

◆ SENSOR_NUM_MB_VR_DIMMA5_PMIC_PWR_W

#define SENSOR_NUM_MB_VR_DIMMA5_PMIC_PWR_W   0x3B

◆ SENSOR_NUM_MB_VR_DIMMA6_PMIC_PWR_W

#define SENSOR_NUM_MB_VR_DIMMA6_PMIC_PWR_W   0x3C

◆ SENSOR_NUM_MB_VR_DIMMA7_PMIC_PWR_W

#define SENSOR_NUM_MB_VR_DIMMA7_PMIC_PWR_W   0x3D

◆ SENSOR_NUM_MB_VR_EHV_CURR_A

#define SENSOR_NUM_MB_VR_EHV_CURR_A   0x2A

◆ SENSOR_NUM_MB_VR_EHV_PWR_W

#define SENSOR_NUM_MB_VR_EHV_PWR_W   0x31

◆ SENSOR_NUM_MB_VR_EHV_TEMP_C

#define SENSOR_NUM_MB_VR_EHV_TEMP_C   0x10

◆ SENSOR_NUM_MB_VR_EHV_VOLT_V

#define SENSOR_NUM_MB_VR_EHV_VOLT_V   0x22

◆ SENSOR_NUM_MB_VR_FIVRA_CURR_A

#define SENSOR_NUM_MB_VR_FIVRA_CURR_A   0x2B

◆ SENSOR_NUM_MB_VR_FIVRA_PWR_W

#define SENSOR_NUM_MB_VR_FIVRA_PWR_W   0x32

◆ SENSOR_NUM_MB_VR_FIVRA_TEMP_C

#define SENSOR_NUM_MB_VR_FIVRA_TEMP_C   0x11

◆ SENSOR_NUM_MB_VR_FIVRA_VOLT_V

#define SENSOR_NUM_MB_VR_FIVRA_VOLT_V   0x1F

◆ SENSOR_NUM_MB_VR_VCCD0_CURR_A

#define SENSOR_NUM_MB_VR_VCCD0_CURR_A   0x2D

◆ SENSOR_NUM_MB_VR_VCCD0_PWR_W

#define SENSOR_NUM_MB_VR_VCCD0_PWR_W   0x34

◆ SENSOR_NUM_MB_VR_VCCD0_TEMP_C

#define SENSOR_NUM_MB_VR_VCCD0_TEMP_C   0x13

◆ SENSOR_NUM_MB_VR_VCCD0_VOLT_V

#define SENSOR_NUM_MB_VR_VCCD0_VOLT_V   0x20

◆ SENSOR_NUM_MB_VR_VCCD1_CURR_A

#define SENSOR_NUM_MB_VR_VCCD1_CURR_A   0x2E

◆ SENSOR_NUM_MB_VR_VCCD1_PWR_W

#define SENSOR_NUM_MB_VR_VCCD1_PWR_W   0x35

◆ SENSOR_NUM_MB_VR_VCCD1_TEMP_C

#define SENSOR_NUM_MB_VR_VCCD1_TEMP_C   0x14

◆ SENSOR_NUM_MB_VR_VCCD1_VOLT_V

#define SENSOR_NUM_MB_VR_VCCD1_VOLT_V   0x21

◆ SENSOR_NUM_MB_VR_VCCIN_CURR_A

#define SENSOR_NUM_MB_VR_VCCIN_CURR_A   0x29

◆ SENSOR_NUM_MB_VR_VCCIN_PWR_W

#define SENSOR_NUM_MB_VR_VCCIN_PWR_W   0x30

◆ SENSOR_NUM_MB_VR_VCCIN_TEMP_C

#define SENSOR_NUM_MB_VR_VCCIN_TEMP_C   0xF

◆ SENSOR_NUM_MB_VR_VCCIN_VOLT_V

#define SENSOR_NUM_MB_VR_VCCIN_VOLT_V   0x1D

◆ SENSOR_NUM_MB_VR_VCCINF_CURR_A

#define SENSOR_NUM_MB_VR_VCCINF_CURR_A   0x2C

◆ SENSOR_NUM_MB_VR_VCCINF_PWR_W

#define SENSOR_NUM_MB_VR_VCCINF_PWR_W   0x33

◆ SENSOR_NUM_MB_VR_VCCINF_TEMP_C

#define SENSOR_NUM_MB_VR_VCCINF_TEMP_C   0x12

◆ SENSOR_NUM_MB_VR_VCCINF_VOLT_V

#define SENSOR_NUM_MB_VR_VCCINF_VOLT_V   0x1E

◆ SENSOR_NUM_PMIC_ERROR

#define SENSOR_NUM_PMIC_ERROR   0xB4

◆ SENSOR_NUM_POWER_ERROR

#define SENSOR_NUM_POWER_ERROR   0x56

◆ SENSOR_NUM_PROC_FAIL

#define SENSOR_NUM_PROC_FAIL   0x65

◆ SENSOR_NUM_SYSTEM_STATUS

#define SENSOR_NUM_SYSTEM_STATUS   0x10

◆ SENSOR_NUM_VR_HOT

#define SENSOR_NUM_VR_HOT   0xB2

◆ SSD0_ADDR

#define SSD0_ADDR   (0xD4 >> 1)

◆ SSD0_OFFSET

#define SSD0_OFFSET   0x00

◆ TMP75_TEMP_OFFSET

#define TMP75_TEMP_OFFSET   0x0

◆ VR_CUR_OFFSET

#define VR_CUR_OFFSET   0x8C

◆ VR_PWR_OFFSET

#define VR_PWR_OFFSET   0x96

◆ VR_TEMP_OFFSET

#define VR_TEMP_OFFSET   0x8D

◆ VR_VOL_OFFSET

#define VR_VOL_OFFSET   0x8B

Typedef Documentation

◆ dimm_pmic_mapping_cfg

Function Documentation

◆ get_dimm_status()

uint8_t get_dimm_status ( uint8_t  dimm_index)