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 TMP75_IN_ADDR   (0x92 >> 1)
 
#define TMP75_OUT_ADDR   (0x94 >> 1)
 
#define TMP75_FIO_ADDR   (0x90 >> 1)
 
#define TMP431_ADDR   (0x98 >> 1)
 
#define TMP75_TEMP_OFFSET   0x00
 
#define SSD0_ADDR   (0xD4 >> 1)
 
#define SSD0_OFFSET   0x00
 
#define ADI_ADM1278_ADDR   (0x80 >> 1)
 
#define ADI_LTC4286_ADDR   (0x84 >> 1)
 
#define MPS_MP5990_ADDR   (0x16 >> 1)
 
#define MPS_MP5990_OFFSET_EFUSE_CFG   0xC4
 
#define ADI_LTC4282_ADDR   (0x88 >> 1)
 
#define PCH_ADDR   (0x2C >> 1)
 
#define ME_SENSOR_NUM_TEMP_PCH   0x08
 
#define PVCCD_HV_ADDR   (0xC4 >> 1)
 
#define PVCCINFAON_ADDR   (0xEC >> 1)
 
#define PVCCFA_EHV_ADDR   (0xEC >> 1)
 
#define PVCCIN_ADDR   (0xC0 >> 1)
 
#define PVCCFA_EHV_FIVRA_ADDR   (0xC0 >> 1)
 
#define VR_VOL_CMD   0x8B
 
#define VR_CUR_CMD   0x8C
 
#define VR_TEMP_CMD   0x8D
 
#define VR_PWR_CMD   0x96
 
#define SSD0_MUX_ADDR   (0xE2 >> 1)
 
#define SSD0_CHANNEL   2
 
#define CPU_PECI_ADDR   0x30
 
#define TEMP_CPU_MARGIN_INDEX   0x02
 
#define TEMP_CPU_MARGIN_PARAM   0x00FF
 
#define TEMP_CPU_TJMAX_INDEX   0x10
 
#define TEMP_CPU_TJMAX_PARAM   0x0000
 
#define TEMP_DIMM_INDEX   0x0E
 
#define TEMP_DIMM_A0_PARAM   0x0000
 
#define TEMP_DIMM_A2_PARAM   0x0002
 
#define TEMP_DIMM_A3_PARAM   0x0003
 
#define TEMP_DIMM_A4_PARAM   0x0004
 
#define TEMP_DIMM_A6_PARAM   0x0006
 
#define TEMP_DIMM_A7_PARAM   0x0007
 
#define DPV2_16_ADDR   0x50
 
#define SENSOR_NUM_TEMP_TMP75_IN   0x01
 
#define SENSOR_NUM_TEMP_TMP75_OUT   0x02
 
#define SENSOR_NUM_TEMP_TMP75_FIO   0x03
 
#define SENSOR_NUM_TEMP_PCH   0x04
 
#define SENSOR_NUM_TEMP_CPU   0x05
 
#define SENSOR_NUM_TEMP_DIMM_A0   0x06
 
#define SENSOR_NUM_TEMP_DIMM_A2   0x07
 
#define SENSOR_NUM_TEMP_DIMM_A3   0x09
 
#define SENSOR_NUM_TEMP_DIMM_A4   0x0A
 
#define SENSOR_NUM_TEMP_DIMM_A6   0x0B
 
#define SENSOR_NUM_TEMP_DIMM_A7   0x0C
 
#define SENSOR_NUM_TEMP_SSD0   0x0D
 
#define SENSOR_NUM_TEMP_HSC   0x0E
 
#define SENSOR_NUM_TEMP_CPU_MARGIN   0x14
 
#define SENSOR_NUM_TEMP_CPU_TJMAX   0x15
 
#define SENSOR_NUM_TEMP_PVCCIN   0x0F
 
#define SENSOR_NUM_TEMP_PVCCFA_EHV_FIVRA   0x10
 
#define SENSOR_NUM_TEMP_PVCCFA_EHV   0x11
 
#define SENSOR_NUM_TEMP_PVCCD_HV   0x12
 
#define SENSOR_NUM_TEMP_PVCCINFAON   0x13
 
#define SENSOR_NUM_VOL_STBY12V   0x20
 
#define SENSOR_NUM_VOL_BAT3V   0x21
 
#define SENSOR_NUM_VOL_STBY3V   0x22
 
#define SENSOR_NUM_VOL_STBY1V05   0x24
 
#define SENSOR_NUM_VOL_STBY1V8   0x23
 
#define SENSOR_NUM_VOL_STBY5V   0x25
 
#define SENSOR_NUM_VOL_DIMM12V   0x26
 
#define SENSOR_NUM_VOL_STBY1V2   0x27
 
#define SENSOR_NUM_VOL_M2_3V3   0x28
 
#define SENSOR_NUM_VOL_HSCIN   0x29
 
#define SENSOR_NUM_VOL_PVCCIN   0x2A
 
#define SENSOR_NUM_VOL_PVCCFA_EHV_FIVRA   0x2C
 
#define SENSOR_NUM_VOL_PVCCFA_EHV   0x2D
 
#define SENSOR_NUM_VOL_PVCCD_HV   0x2E
 
#define SENSOR_NUM_VOL_PVCCINFAON   0x2F
 
#define SENSOR_NUM_CUR_HSCOUT   0x30
 
#define SENSOR_NUM_CUR_PVCCIN   0x31
 
#define SENSOR_NUM_CUR_PVCCFA_EHV_FIVRA   0x32
 
#define SENSOR_NUM_CUR_PVCCFA_EHV   0x33
 
#define SENSOR_NUM_CUR_PVCCD_HV   0x34
 
#define SENSOR_NUM_CUR_PVCCINFAON   0x35
 
#define SENSOR_NUM_PWR_CPU   0x38
 
#define SENSOR_NUM_PWR_HSCIN   0x39
 
#define SENSOR_NUM_PWR_PVCCIN   0x3A
 
#define SENSOR_NUM_PWR_PVCCFA_EHV_FIVRA   0x3C
 
#define SENSOR_NUM_PWR_PVCCFA_EHV   0x3D
 
#define SENSOR_NUM_PWR_PVCCD_HV   0x3E
 
#define SENSOR_NUM_PWR_PVCCINFAON   0x3F
 
#define SENSOR_NUM_PWR_DIMMA0_PMIC   0x1E
 
#define SENSOR_NUM_PWR_DIMMA2_PMIC   0x1F
 
#define SENSOR_NUM_PWR_DIMMA3_PMIC   0x36
 
#define SENSOR_NUM_PWR_DIMMA4_PMIC   0x37
 
#define SENSOR_NUM_PWR_DIMMA6_PMIC   0x42
 
#define SENSOR_NUM_PWR_DIMMA7_PMIC   0x47
 
#define SENSOR_NUM_SYSTEM_STATUS   0x10
 
#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
 
#define SENSOR_NUM_NMI   0xEA
 
#define SENSOR_NUM_VOL_DPV2_12VIN   0x91
 
#define SENSOR_NUM_VOL_DPV2_12VOUT   0x92
 
#define SENSOR_NUM_CUR_DPV2OUT   0x93
 
#define SENSOR_NUM_TEMP_DPV2_EFUSE   0x94
 
#define SENSOR_NUM_PWR_DPV2   0x95
 
#define POLL_TIME_BAT3V   3600
 

Typedefs

typedef struct _dimm_pmic_mapping_cfg dimm_pmic_mapping_cfg
 

Functions

uint8_t plat_get_config_size ()
 
uint8_t pal_get_extend_sensor_config ()
 
void load_sensor_config (void)
 
bool disable_dimm_pmic_sensor (uint8_t sensor_num)
 
uint8_t get_dimm_status (uint8_t dimm_index)
 

Macro Definition Documentation

◆ ADI_ADM1278_ADDR

#define ADI_ADM1278_ADDR   (0x80 >> 1)

◆ ADI_LTC4282_ADDR

#define ADI_LTC4282_ADDR   (0x88 >> 1)

◆ ADI_LTC4286_ADDR

#define ADI_LTC4286_ADDR   (0x84 >> 1)

◆ CPU_PECI_ADDR

#define CPU_PECI_ADDR   0x30

◆ DPV2_16_ADDR

#define DPV2_16_ADDR   0x50

◆ ME_SENSOR_NUM_TEMP_PCH

#define ME_SENSOR_NUM_TEMP_PCH   0x08

◆ MPS_MP5990_ADDR

#define MPS_MP5990_ADDR   (0x16 >> 1)

◆ MPS_MP5990_OFFSET_EFUSE_CFG

#define MPS_MP5990_OFFSET_EFUSE_CFG   0xC4

◆ PCH_ADDR

#define PCH_ADDR   (0x2C >> 1)

◆ POLL_TIME_BAT3V

#define POLL_TIME_BAT3V   3600

◆ PVCCD_HV_ADDR

#define PVCCD_HV_ADDR   (0xC4 >> 1)

◆ PVCCFA_EHV_ADDR

#define PVCCFA_EHV_ADDR   (0xEC >> 1)

◆ PVCCFA_EHV_FIVRA_ADDR

#define PVCCFA_EHV_FIVRA_ADDR   (0xC0 >> 1)

◆ PVCCIN_ADDR

#define PVCCIN_ADDR   (0xC0 >> 1)

◆ PVCCINFAON_ADDR

#define PVCCINFAON_ADDR   (0xEC >> 1)

◆ SENSOR_NUM_CATERR

#define SENSOR_NUM_CATERR   0xEB

◆ SENSOR_NUM_CPUDIMM_HOT

#define SENSOR_NUM_CPUDIMM_HOT   0xB3

◆ SENSOR_NUM_CUR_DPV2OUT

#define SENSOR_NUM_CUR_DPV2OUT   0x93

◆ SENSOR_NUM_CUR_HSCOUT

#define SENSOR_NUM_CUR_HSCOUT   0x30

◆ SENSOR_NUM_CUR_PVCCD_HV

#define SENSOR_NUM_CUR_PVCCD_HV   0x34

◆ SENSOR_NUM_CUR_PVCCFA_EHV

#define SENSOR_NUM_CUR_PVCCFA_EHV   0x33

◆ SENSOR_NUM_CUR_PVCCFA_EHV_FIVRA

#define SENSOR_NUM_CUR_PVCCFA_EHV_FIVRA   0x32

◆ SENSOR_NUM_CUR_PVCCIN

#define SENSOR_NUM_CUR_PVCCIN   0x31

◆ SENSOR_NUM_CUR_PVCCINFAON

#define SENSOR_NUM_CUR_PVCCINFAON   0x35

◆ SENSOR_NUM_NMI

#define SENSOR_NUM_NMI   0xEA

◆ 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_PWR_CPU

#define SENSOR_NUM_PWR_CPU   0x38

◆ SENSOR_NUM_PWR_DIMMA0_PMIC

#define SENSOR_NUM_PWR_DIMMA0_PMIC   0x1E

◆ SENSOR_NUM_PWR_DIMMA2_PMIC

#define SENSOR_NUM_PWR_DIMMA2_PMIC   0x1F

◆ SENSOR_NUM_PWR_DIMMA3_PMIC

#define SENSOR_NUM_PWR_DIMMA3_PMIC   0x36

◆ SENSOR_NUM_PWR_DIMMA4_PMIC

#define SENSOR_NUM_PWR_DIMMA4_PMIC   0x37

◆ SENSOR_NUM_PWR_DIMMA6_PMIC

#define SENSOR_NUM_PWR_DIMMA6_PMIC   0x42

◆ SENSOR_NUM_PWR_DIMMA7_PMIC

#define SENSOR_NUM_PWR_DIMMA7_PMIC   0x47

◆ SENSOR_NUM_PWR_DPV2

#define SENSOR_NUM_PWR_DPV2   0x95

◆ SENSOR_NUM_PWR_HSCIN

#define SENSOR_NUM_PWR_HSCIN   0x39

◆ SENSOR_NUM_PWR_PVCCD_HV

#define SENSOR_NUM_PWR_PVCCD_HV   0x3E

◆ SENSOR_NUM_PWR_PVCCFA_EHV

#define SENSOR_NUM_PWR_PVCCFA_EHV   0x3D

◆ SENSOR_NUM_PWR_PVCCFA_EHV_FIVRA

#define SENSOR_NUM_PWR_PVCCFA_EHV_FIVRA   0x3C

◆ SENSOR_NUM_PWR_PVCCIN

#define SENSOR_NUM_PWR_PVCCIN   0x3A

◆ SENSOR_NUM_PWR_PVCCINFAON

#define SENSOR_NUM_PWR_PVCCINFAON   0x3F

◆ SENSOR_NUM_SYSTEM_STATUS

#define SENSOR_NUM_SYSTEM_STATUS   0x10

◆ SENSOR_NUM_TEMP_CPU

#define SENSOR_NUM_TEMP_CPU   0x05

◆ SENSOR_NUM_TEMP_CPU_MARGIN

#define SENSOR_NUM_TEMP_CPU_MARGIN   0x14

◆ SENSOR_NUM_TEMP_CPU_TJMAX

#define SENSOR_NUM_TEMP_CPU_TJMAX   0x15

◆ SENSOR_NUM_TEMP_DIMM_A0

#define SENSOR_NUM_TEMP_DIMM_A0   0x06

◆ SENSOR_NUM_TEMP_DIMM_A2

#define SENSOR_NUM_TEMP_DIMM_A2   0x07

◆ SENSOR_NUM_TEMP_DIMM_A3

#define SENSOR_NUM_TEMP_DIMM_A3   0x09

◆ SENSOR_NUM_TEMP_DIMM_A4

#define SENSOR_NUM_TEMP_DIMM_A4   0x0A

◆ SENSOR_NUM_TEMP_DIMM_A6

#define SENSOR_NUM_TEMP_DIMM_A6   0x0B

◆ SENSOR_NUM_TEMP_DIMM_A7

#define SENSOR_NUM_TEMP_DIMM_A7   0x0C

◆ SENSOR_NUM_TEMP_DPV2_EFUSE

#define SENSOR_NUM_TEMP_DPV2_EFUSE   0x94

◆ SENSOR_NUM_TEMP_HSC

#define SENSOR_NUM_TEMP_HSC   0x0E

◆ SENSOR_NUM_TEMP_PCH

#define SENSOR_NUM_TEMP_PCH   0x04

◆ SENSOR_NUM_TEMP_PVCCD_HV

#define SENSOR_NUM_TEMP_PVCCD_HV   0x12

◆ SENSOR_NUM_TEMP_PVCCFA_EHV

#define SENSOR_NUM_TEMP_PVCCFA_EHV   0x11

◆ SENSOR_NUM_TEMP_PVCCFA_EHV_FIVRA

#define SENSOR_NUM_TEMP_PVCCFA_EHV_FIVRA   0x10

◆ SENSOR_NUM_TEMP_PVCCIN

#define SENSOR_NUM_TEMP_PVCCIN   0x0F

◆ SENSOR_NUM_TEMP_PVCCINFAON

#define SENSOR_NUM_TEMP_PVCCINFAON   0x13

◆ SENSOR_NUM_TEMP_SSD0

#define SENSOR_NUM_TEMP_SSD0   0x0D

◆ SENSOR_NUM_TEMP_TMP75_FIO

#define SENSOR_NUM_TEMP_TMP75_FIO   0x03

◆ SENSOR_NUM_TEMP_TMP75_IN

#define SENSOR_NUM_TEMP_TMP75_IN   0x01

◆ SENSOR_NUM_TEMP_TMP75_OUT

#define SENSOR_NUM_TEMP_TMP75_OUT   0x02

◆ SENSOR_NUM_VOL_BAT3V

#define SENSOR_NUM_VOL_BAT3V   0x21

◆ SENSOR_NUM_VOL_DIMM12V

#define SENSOR_NUM_VOL_DIMM12V   0x26

◆ SENSOR_NUM_VOL_DPV2_12VIN

#define SENSOR_NUM_VOL_DPV2_12VIN   0x91

◆ SENSOR_NUM_VOL_DPV2_12VOUT

#define SENSOR_NUM_VOL_DPV2_12VOUT   0x92

◆ SENSOR_NUM_VOL_HSCIN

#define SENSOR_NUM_VOL_HSCIN   0x29

◆ SENSOR_NUM_VOL_M2_3V3

#define SENSOR_NUM_VOL_M2_3V3   0x28

◆ SENSOR_NUM_VOL_PVCCD_HV

#define SENSOR_NUM_VOL_PVCCD_HV   0x2E

◆ SENSOR_NUM_VOL_PVCCFA_EHV

#define SENSOR_NUM_VOL_PVCCFA_EHV   0x2D

◆ SENSOR_NUM_VOL_PVCCFA_EHV_FIVRA

#define SENSOR_NUM_VOL_PVCCFA_EHV_FIVRA   0x2C

◆ SENSOR_NUM_VOL_PVCCIN

#define SENSOR_NUM_VOL_PVCCIN   0x2A

◆ SENSOR_NUM_VOL_PVCCINFAON

#define SENSOR_NUM_VOL_PVCCINFAON   0x2F

◆ SENSOR_NUM_VOL_STBY12V

#define SENSOR_NUM_VOL_STBY12V   0x20

◆ SENSOR_NUM_VOL_STBY1V05

#define SENSOR_NUM_VOL_STBY1V05   0x24

◆ SENSOR_NUM_VOL_STBY1V2

#define SENSOR_NUM_VOL_STBY1V2   0x27

◆ SENSOR_NUM_VOL_STBY1V8

#define SENSOR_NUM_VOL_STBY1V8   0x23

◆ SENSOR_NUM_VOL_STBY3V

#define SENSOR_NUM_VOL_STBY3V   0x22

◆ SENSOR_NUM_VOL_STBY5V

#define SENSOR_NUM_VOL_STBY5V   0x25

◆ SENSOR_NUM_VR_HOT

#define SENSOR_NUM_VR_HOT   0xB2

◆ SSD0_ADDR

#define SSD0_ADDR   (0xD4 >> 1)

◆ SSD0_CHANNEL

#define SSD0_CHANNEL   2

◆ SSD0_MUX_ADDR

#define SSD0_MUX_ADDR   (0xE2 >> 1)

◆ SSD0_OFFSET

#define SSD0_OFFSET   0x00

◆ TEMP_CPU_MARGIN_INDEX

#define TEMP_CPU_MARGIN_INDEX   0x02

◆ TEMP_CPU_MARGIN_PARAM

#define TEMP_CPU_MARGIN_PARAM   0x00FF

◆ TEMP_CPU_TJMAX_INDEX

#define TEMP_CPU_TJMAX_INDEX   0x10

◆ TEMP_CPU_TJMAX_PARAM

#define TEMP_CPU_TJMAX_PARAM   0x0000

◆ TEMP_DIMM_A0_PARAM

#define TEMP_DIMM_A0_PARAM   0x0000

◆ TEMP_DIMM_A2_PARAM

#define TEMP_DIMM_A2_PARAM   0x0002

◆ TEMP_DIMM_A3_PARAM

#define TEMP_DIMM_A3_PARAM   0x0003

◆ TEMP_DIMM_A4_PARAM

#define TEMP_DIMM_A4_PARAM   0x0004

◆ TEMP_DIMM_A6_PARAM

#define TEMP_DIMM_A6_PARAM   0x0006

◆ TEMP_DIMM_A7_PARAM

#define TEMP_DIMM_A7_PARAM   0x0007

◆ TEMP_DIMM_INDEX

#define TEMP_DIMM_INDEX   0x0E

◆ TMP431_ADDR

#define TMP431_ADDR   (0x98 >> 1)

◆ TMP75_FIO_ADDR

#define TMP75_FIO_ADDR   (0x90 >> 1)

◆ TMP75_IN_ADDR

#define TMP75_IN_ADDR   (0x92 >> 1)

◆ TMP75_OUT_ADDR

#define TMP75_OUT_ADDR   (0x94 >> 1)

◆ TMP75_TEMP_OFFSET

#define TMP75_TEMP_OFFSET   0x00

◆ VR_CUR_CMD

#define VR_CUR_CMD   0x8C

◆ VR_PWR_CMD

#define VR_PWR_CMD   0x96

◆ VR_TEMP_CMD

#define VR_TEMP_CMD   0x8D

◆ VR_VOL_CMD

#define VR_VOL_CMD   0x8B

Typedef Documentation

◆ dimm_pmic_mapping_cfg

Function Documentation

◆ disable_dimm_pmic_sensor()

bool disable_dimm_pmic_sensor ( uint8_t  sensor_num)
Here is the call graph for this function:

◆ get_dimm_status()

uint8_t get_dimm_status ( uint8_t  dimm_index)

◆ load_sensor_config()

void load_sensor_config ( void  )

◆ pal_get_extend_sensor_config()

uint8_t pal_get_extend_sensor_config ( )
Here is the call graph for this function:

◆ plat_get_config_size()

uint8_t plat_get_config_size ( )