OpenBIC
OpenSource Bridge-IC
plat_sensor_table.h File Reference
#include <stdint.h>
#include "sensor.h"
#include "plat_def.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 POLL_TIME_BAT3V   3600
 
#define E1S_SSD_ADDR   (0xD4 >> 1)
 
#define FPGA_ADDR   (0xC0 >> 1)
 
#define TEMP_HSC_ADDR   (0x98 >> 1)
 
#define MP5990_ADDR   (0xA0 >> 1)
 
#define MP5990_ADDR_1   (0xC0 >> 1)
 
#define RS31380R_ADDR   (0xC0 >> 1)
 
#define INA230_ADDR   (0x8A >> 1)
 
#define INA3221_ADDR   (0x80 >> 1)
 
#define TMP451_ADDR   (0x98 >> 1)
 
#define TMP75_ADDR   (0x90 >> 1)
 
#define AL_RETIMER_ADDR   (0x40 >> 1)
 
#define TI_RETIMER_ADDR   (0x20 >> 1)
 
#define SSD_TEMP_OFFSET   0x00
 
#define TMP75_TEMP_OFFSET   0x00
 
#define SENSOR_NUM_TEMP_TMP451_IN   0x1
 
#define SENSOR_NUM_TEMP_TMP451_OUT   0x2
 
#define SENSOR_NUM_TEMP_TMP75_FIO   0x3
 
#define SENSOR_NUM_TEMP_CPU   0x4
 
#define SENSOR_NUM_TEMP_FPGA   0x5
 
#define SENSOR_NUM_TEMP_E1S_SSD   0x6
 
#define SENSOR_NUM_TEMP_HSC   0x7
 
#define SENSOR_NUM_TEMP_CPUDVDD   0x8
 
#define SENSOR_NUM_TEMP_CPUVDD   0x9
 
#define SENSOR_NUM_TEMP_SOCVDD   0xA
 
#define SENSOR_NUM_TEMP_RETIMER   0xB
 
#define SENSOR_NUM_TEMP_LPDDR5_UP   0xC
 
#define SENSOR_NUM_TEMP_LPDDR5_DOWN   0xD
 
#define SENSOR_NUM_VOL_HSCIN   0x10
 
#define SENSOR_NUM_VOL_ADC0_P12V_STBY   0x11
 
#define SENSOR_NUM_VOL_ADC1_VDD_1V8   0x12
 
#define SENSOR_NUM_VOL_ADC2_P3V3_STBY   0x13
 
#define SENSOR_NUM_VOL_ADC3_SOCVDD   0x14
 
#define SENSOR_NUM_VOL_ADC4_P3V_BAT   0x15
 
#define SENSOR_NUM_VOL_ADC5_CPUVDD   0x16
 
#define SENSOR_NUM_VOL_ADC6_FPGA_VCC_AO   0x17
 
#define SENSOR_NUM_VOL_ADC7_1V2   0x18
 
#define SENSOR_NUM_VOL_ADC9_VDD_3V3   0x19
 
#define SENSOR_NUM_VOL_ADC10_P1V2_STBY   0x1A
 
#define SENSOR_NUM_VOL_ADC11_FBVDDQ   0x1B
 
#define SENSOR_NUM_VOL_ADC12_FBVDDP2   0x1C
 
#define SENSOR_NUM_VOL_ADC13_FBVDD1   0x1D
 
#define SENSOR_NUM_VOL_ADC14_P5V_STBY   0x1E
 
#define SENSOR_NUM_VOL_ADC15_CPU_DVDD   0x1F
 
#define SENSOR_NUM_VOL_E1S   0x20
 
#define SENSOR_NUM_VOL_CPUDVDD   0x21
 
#define SENSOR_NUM_VOL_CPUVDD   0x22
 
#define SENSOR_NUM_VOL_SOCVDD   0x23
 
#define SENSOR_NUM_CUR_HSCOUT   0x25
 
#define SENSOR_NUM_CUR_E1S   0x26
 
#define SENSOR_NUM_CUR_CPUDVDD   0x27
 
#define SENSOR_NUM_CUR_CPUVDD   0x28
 
#define SENSOR_NUM_CUR_SOCVDD   0x29
 
#define SENSOR_NUM_PWR_CPU   0x30
 
#define SENSOR_NUM_PWR_HSCIN   0x31
 
#define SENSOR_NUM_PWR_E1S   0x32
 
#define SENSOR_NUM_PWR_CPUDVDD   0x33
 
#define SENSOR_NUM_PWR_CPUVDD   0x34
 
#define SENSOR_NUM_PWR_SOCVDD   0x35
 
#define SENSOR_NUM_OTH_CPU_THROTTLE   0x40
 
#define SENSOR_NUM_OTH_POWER_BREAK   0x41
 
#define SENSOR_NUM_OTH_SPARE_CHANNEL   0x42
 
#define SENSOR_NUM_OTH_PAGE_RETIRE_CNT   0x43
 
#define SENSOR_NUM_SYSTEM_STATUS   0x10
 
#define SENSOR_NUM_POWER_ERROR   0x56
 
#define SENSOR_NUM_PROC_FAIL   0x65
 
#define SENSOR_NUM_VR_OCP   0x71
 
#define SENSOR_NUM_CPU_FAULT   0xC0
 
#define IPMI_EVENT_OFFSET_SYS_E1S_ALERT   0x86
 
#define IPMI_EVENT_CPUVDD_OCP_ASSERT   0x06
 

Functions

uint8_t plat_get_config_size ()
 
void load_sensor_config (void)
 
bool modify_sensor_cfg ()
 

Macro Definition Documentation

◆ AL_RETIMER_ADDR

#define AL_RETIMER_ADDR   (0x40 >> 1)

◆ E1S_SSD_ADDR

#define E1S_SSD_ADDR   (0xD4 >> 1)

◆ FPGA_ADDR

#define FPGA_ADDR   (0xC0 >> 1)

◆ INA230_ADDR

#define INA230_ADDR   (0x8A >> 1)

◆ INA3221_ADDR

#define INA3221_ADDR   (0x80 >> 1)

◆ IPMI_EVENT_CPUVDD_OCP_ASSERT

#define IPMI_EVENT_CPUVDD_OCP_ASSERT   0x06

◆ IPMI_EVENT_OFFSET_SYS_E1S_ALERT

#define IPMI_EVENT_OFFSET_SYS_E1S_ALERT   0x86

◆ MP5990_ADDR

#define MP5990_ADDR   (0xA0 >> 1)

◆ MP5990_ADDR_1

#define MP5990_ADDR_1   (0xC0 >> 1)

◆ POLL_TIME_BAT3V

#define POLL_TIME_BAT3V   3600

◆ RS31380R_ADDR

#define RS31380R_ADDR   (0xC0 >> 1)

◆ SENSOR_NUM_CPU_FAULT

#define SENSOR_NUM_CPU_FAULT   0xC0

◆ SENSOR_NUM_CUR_CPUDVDD

#define SENSOR_NUM_CUR_CPUDVDD   0x27

◆ SENSOR_NUM_CUR_CPUVDD

#define SENSOR_NUM_CUR_CPUVDD   0x28

◆ SENSOR_NUM_CUR_E1S

#define SENSOR_NUM_CUR_E1S   0x26

◆ SENSOR_NUM_CUR_HSCOUT

#define SENSOR_NUM_CUR_HSCOUT   0x25

◆ SENSOR_NUM_CUR_SOCVDD

#define SENSOR_NUM_CUR_SOCVDD   0x29

◆ SENSOR_NUM_OTH_CPU_THROTTLE

#define SENSOR_NUM_OTH_CPU_THROTTLE   0x40

◆ SENSOR_NUM_OTH_PAGE_RETIRE_CNT

#define SENSOR_NUM_OTH_PAGE_RETIRE_CNT   0x43

◆ SENSOR_NUM_OTH_POWER_BREAK

#define SENSOR_NUM_OTH_POWER_BREAK   0x41

◆ SENSOR_NUM_OTH_SPARE_CHANNEL

#define SENSOR_NUM_OTH_SPARE_CHANNEL   0x42

◆ 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   0x30

◆ SENSOR_NUM_PWR_CPUDVDD

#define SENSOR_NUM_PWR_CPUDVDD   0x33

◆ SENSOR_NUM_PWR_CPUVDD

#define SENSOR_NUM_PWR_CPUVDD   0x34

◆ SENSOR_NUM_PWR_E1S

#define SENSOR_NUM_PWR_E1S   0x32

◆ SENSOR_NUM_PWR_HSCIN

#define SENSOR_NUM_PWR_HSCIN   0x31

◆ SENSOR_NUM_PWR_SOCVDD

#define SENSOR_NUM_PWR_SOCVDD   0x35

◆ SENSOR_NUM_SYSTEM_STATUS

#define SENSOR_NUM_SYSTEM_STATUS   0x10

◆ SENSOR_NUM_TEMP_CPU

#define SENSOR_NUM_TEMP_CPU   0x4

◆ SENSOR_NUM_TEMP_CPUDVDD

#define SENSOR_NUM_TEMP_CPUDVDD   0x8

◆ SENSOR_NUM_TEMP_CPUVDD

#define SENSOR_NUM_TEMP_CPUVDD   0x9

◆ SENSOR_NUM_TEMP_E1S_SSD

#define SENSOR_NUM_TEMP_E1S_SSD   0x6

◆ SENSOR_NUM_TEMP_FPGA

#define SENSOR_NUM_TEMP_FPGA   0x5

◆ SENSOR_NUM_TEMP_HSC

#define SENSOR_NUM_TEMP_HSC   0x7

◆ SENSOR_NUM_TEMP_LPDDR5_DOWN

#define SENSOR_NUM_TEMP_LPDDR5_DOWN   0xD

◆ SENSOR_NUM_TEMP_LPDDR5_UP

#define SENSOR_NUM_TEMP_LPDDR5_UP   0xC

◆ SENSOR_NUM_TEMP_RETIMER

#define SENSOR_NUM_TEMP_RETIMER   0xB

◆ SENSOR_NUM_TEMP_SOCVDD

#define SENSOR_NUM_TEMP_SOCVDD   0xA

◆ SENSOR_NUM_TEMP_TMP451_IN

#define SENSOR_NUM_TEMP_TMP451_IN   0x1

◆ SENSOR_NUM_TEMP_TMP451_OUT

#define SENSOR_NUM_TEMP_TMP451_OUT   0x2

◆ SENSOR_NUM_TEMP_TMP75_FIO

#define SENSOR_NUM_TEMP_TMP75_FIO   0x3

◆ SENSOR_NUM_VOL_ADC0_P12V_STBY

#define SENSOR_NUM_VOL_ADC0_P12V_STBY   0x11

◆ SENSOR_NUM_VOL_ADC10_P1V2_STBY

#define SENSOR_NUM_VOL_ADC10_P1V2_STBY   0x1A

◆ SENSOR_NUM_VOL_ADC11_FBVDDQ

#define SENSOR_NUM_VOL_ADC11_FBVDDQ   0x1B

◆ SENSOR_NUM_VOL_ADC12_FBVDDP2

#define SENSOR_NUM_VOL_ADC12_FBVDDP2   0x1C

◆ SENSOR_NUM_VOL_ADC13_FBVDD1

#define SENSOR_NUM_VOL_ADC13_FBVDD1   0x1D

◆ SENSOR_NUM_VOL_ADC14_P5V_STBY

#define SENSOR_NUM_VOL_ADC14_P5V_STBY   0x1E

◆ SENSOR_NUM_VOL_ADC15_CPU_DVDD

#define SENSOR_NUM_VOL_ADC15_CPU_DVDD   0x1F

◆ SENSOR_NUM_VOL_ADC1_VDD_1V8

#define SENSOR_NUM_VOL_ADC1_VDD_1V8   0x12

◆ SENSOR_NUM_VOL_ADC2_P3V3_STBY

#define SENSOR_NUM_VOL_ADC2_P3V3_STBY   0x13

◆ SENSOR_NUM_VOL_ADC3_SOCVDD

#define SENSOR_NUM_VOL_ADC3_SOCVDD   0x14

◆ SENSOR_NUM_VOL_ADC4_P3V_BAT

#define SENSOR_NUM_VOL_ADC4_P3V_BAT   0x15

◆ SENSOR_NUM_VOL_ADC5_CPUVDD

#define SENSOR_NUM_VOL_ADC5_CPUVDD   0x16

◆ SENSOR_NUM_VOL_ADC6_FPGA_VCC_AO

#define SENSOR_NUM_VOL_ADC6_FPGA_VCC_AO   0x17

◆ SENSOR_NUM_VOL_ADC7_1V2

#define SENSOR_NUM_VOL_ADC7_1V2   0x18

◆ SENSOR_NUM_VOL_ADC9_VDD_3V3

#define SENSOR_NUM_VOL_ADC9_VDD_3V3   0x19

◆ SENSOR_NUM_VOL_CPUDVDD

#define SENSOR_NUM_VOL_CPUDVDD   0x21

◆ SENSOR_NUM_VOL_CPUVDD

#define SENSOR_NUM_VOL_CPUVDD   0x22

◆ SENSOR_NUM_VOL_E1S

#define SENSOR_NUM_VOL_E1S   0x20

◆ SENSOR_NUM_VOL_HSCIN

#define SENSOR_NUM_VOL_HSCIN   0x10

◆ SENSOR_NUM_VOL_SOCVDD

#define SENSOR_NUM_VOL_SOCVDD   0x23

◆ SENSOR_NUM_VR_OCP

#define SENSOR_NUM_VR_OCP   0x71

◆ SSD_TEMP_OFFSET

#define SSD_TEMP_OFFSET   0x00

◆ TEMP_HSC_ADDR

#define TEMP_HSC_ADDR   (0x98 >> 1)

◆ TI_RETIMER_ADDR

#define TI_RETIMER_ADDR   (0x20 >> 1)

◆ TMP451_ADDR

#define TMP451_ADDR   (0x98 >> 1)

◆ TMP75_ADDR

#define TMP75_ADDR   (0x90 >> 1)

◆ TMP75_TEMP_OFFSET

#define TMP75_TEMP_OFFSET   0x00

Function Documentation

◆ load_sensor_config()

void load_sensor_config ( void  )

◆ modify_sensor_cfg()

bool modify_sensor_cfg ( )
Here is the call graph for this function:

◆ plat_get_config_size()

uint8_t plat_get_config_size ( )