|
enum | LTC4282_OFFSET {
LTC4282_ILIM_ADJUST_OFFSET = 0x11
, LTC4282_VSENSE_OFFSET = 0x40
, LTC4282_POWER_OFFSET = 0x46
, LTC4282_VSOURCE_OFFSET = 0x3A
,
LTC4282_ADC_CONTROL_OFFSET = 0x1D
, LTC4282_ENERGY_OFFSET = 0x12
, LTC4282_STATUS_OFFSET_BYTE1 = 0x1E
, LTC4282_STATUS_OFFSET_BYTE2 = 0x1F
} |
|
enum | ADM1278_OFFSET { ADM1278_PEAK_IOUT_OFFSET = 0xD0
, ADM1278_PEAK_PIN_OFFSET = 0xDA
, ADM1278_EIN_EXT_OFFSET = 0xDC
} |
|
enum | NCT7718W_OFFSET {
NCT7718W_LOCAL_TEMP_OFFSET = 0x00
, NCT7718W_REMOTE_TEMP_MSB_OFFSET = 0x01
, NCT7718W_CONFIGURATION_OFFSET = 0x03
, NCT7718W_RT1_HIGH_ALERT_TEMP_OFFSET = 0x0D
,
NCT7718W_REMOTE_TEMP_LSB_OFFSET = 0x10
, NCT7718W_ALERT_MASK_OFFSET = 0x16
, NCT7718W_RT1_CRITICAL_TEMP_OFFSET = 0x19
, NCT7718W_LT_CRITICAL_TEMP_OFFSET = 0x20
,
NCT7718W_RT_FILTER_ALERT_MODE_OFFSET = 0xBF
, NCT7718W_CHIP_ID_OFFSET = 0xFD
, NCT7718W_VENDOR_ID_OFFSET = 0xFE
} |
|
enum | INA230_OFFSET {
INA230_CFG_OFFSET = 0x00
, INA230_VSH_VOL_OFFSET = 0x01
, INA230_BUS_VOL_OFFSET = 0x02
, INA230_PWR_OFFSET = 0x03
,
INA230_CUR_OFFSET = 0x04
, INA230_CAL_OFFSET = 0x05
, INA230_MSK_OFFSET = 0x06
, INA230_ALT_OFFSET = 0x07
} |
|
enum | G788P81U_OFFSET {
G788P81U_LOCAL_TEMP_OFFSET = 0x00
, G788P81U_REMOTE_TEMP_OFFSET = 0x01
, G788P81U_CONFIGURATION_OFFSET = 0x03
, G788P81U_REMOTE_THIGH_LIMIT_OFFSET = 0x0D
,
G788P81U_REMOTE_TEMP_EXT_OFFSET = 0x10
, G788P81U_ALERT_MASK_OFFSET = 0x16
, G788P81U_REMOTE_TEMP_THERM_LIMIT_OFFSET = 0x19
, G788P81U_LOCAL_TEMP_THERM_LIMIT_OFFSET = 0x20
,
G788P81U_ALERT_MODE_OFFSET = 0xBF
} |
|
enum | DIMM_RELATED_OFFSET { DIMM_PMIC_SWA_PWR = 0x0C
, DIMM_SPD_TEMP = 0x31
} |
|
enum | ADS112C_OFFSET { ADS112C_MUX_1_CON = 0x80
, ADS112C_MUX_2_CON = 0x90
, ADS112C_MUX_3_CON = 0xA0
, ADS112C_MUX_4_CON = 0xA1
} |
|
enum | SENSOR_DEV {
sensor_dev_tmp75 = 0
, sensor_dev_ast_adc = 0x01
, sensor_dev_intel_peci = 0x02
, sensor_dev_isl69259 = 0x03
,
sensor_dev_adm1278 = 0x04
, sensor_dev_nvme = 0x05
, sensor_dev_pch = 0x06
, sensor_dev_mp5990 = 0x07
,
sensor_dev_isl28022 = 0x08
, sensor_dev_pex89000 = 0x09
, sensor_dev_tps53689 = 0x0A
, sensor_dev_xdpe15284 = 0x0B
,
sensor_dev_ltc4282 = 0x0C
, sensor_dev_ast_fan = 0x0D
, sensor_dev_tmp431 = 0x0E
, sensor_dev_pmic = 0x0F
,
sensor_dev_ina233 = 0x10
, sensor_dev_isl69254iraz_t = 0x11
, sensor_dev_max16550a = 0x12
, sensor_dev_ina230 = 0x13
,
sensor_dev_xdpe12284c = 0x14
, sensor_dev_raa229621 = 0x15
, sensor_dev_nct7718w = 0x16
, sensor_dev_ltc4286 = 0x17
,
sensor_dev_amd_tsi = 0x18
, sensor_dev_apml_mailbox = 0x19
, sensor_dev_xdpe19283b = 0x1A
, sensor_dev_g788p81u = 0x1B
,
sensor_dev_mp2856gut = 0x1C
, sensor_dev_ddr5_power = 0x1D
, sensor_dev_ddr5_temp = 0x1E
, sensor_dev_adm1272 = 0x1F
,
sensor_dev_q50sn120a1 = 0x20
, sensor_dev_mp2971 = 0x21
, sensor_dev_pm8702 = 0x22
, sensor_dev_ltc2991 = 0x23
,
sensor_dev_sq52205 = 0x24
, sensor_dev_emc1412 = 0x25
, sensor_dev_i3c_dimm = 0x26
, sensor_dev_pt5161l = 0x27
,
sensor_dev_lm75bd118 = 0x28
, sensor_dev_tmp461 = 0x29
, sensor_dev_mp2985 = 0x2A
, sensor_dev_m88rt51632 = 0x2B
,
sensor_dev_mpro = 0x2C
, sensor_dev_bmr351 = 0x2D
, sensor_dev_cx7 = 0x2E
, sensor_dev_vistara = 0x2F
,
sensor_dev_max11617 = 0x30
, sensor_dev_nv_satmc = 0x31
, sensor_dev_nct7363 = 0x32
, sensor_dev_ads112c = 0x33
,
sensor_dev_hdc1080 = 0x34
, sensor_dev_ina238 = 0x35
, sensor_dev_nct214 = 0x36
, sensor_dev_ast_tach = 0x37
,
sensor_dev_xdp710 = 0x38
, sensor_dev_ds160pt801 = 0x39
, sensor_dev_rs31380r = 0x3A
, sensor_dev_adc128d818 = 0x3B
,
sensor_dev_ads1015 = 0x3C
, sensor_dev_plat_def_sensor = 0x3D
, sensor_dev_e50sn12051 = 0x3E
, sensor_dev_u50su4p180pmdafc = 0x3F
,
sensor_dev_bmr313 = 0x40
, sensor_dev_mp2891 = 0x41
, sensor_dev_raa228238 = 0x42
, sensor_dev_mpc12109 = 0x43
,
sensor_dev_rtq6056 = 0x44
, sensor_dev_mp29816a = 0x45
, sensor_dev_raa228249 = 0x46
, sensor_dev_bmr4922302_803 = 0x47
,
sensor_dev_emc1413 = 0x48
, sensor_dev_bcm85658 = 0x49
, sensor_dev_max
} |
|
enum | CONTROL_SENSOR_POLLING_OPTION { DISABLE_SENSOR_POLLING = false
, ENABLE_SENSOR_POLLING = true
} |
|
enum | {
SENSOR_READ_SUCCESS
, SENSOR_READ_ACUR_SUCCESS
, SENSOR_NOT_FOUND
, SENSOR_NOT_ACCESSIBLE
,
SENSOR_FAIL_TO_ACCESS
, SENSOR_INIT_STATUS
, SENSOR_UNSPECIFIED_ERROR
, SENSOR_POLLING_DISABLE
,
SENSOR_PRE_READ_ERROR
, SENSOR_POST_READ_ERROR
, SENSOR_READ_API_UNREGISTER
, SENSOR_READ_4BYTE_ACUR_SUCCESS
,
SENSOR_NOT_PRESENT
, SENSOR_PEC_ERROR
, SENSOR_PARAMETER_NOT_VALID
, SENSOR_UNAVAILABLE
} |
|
enum | { SENSOR_INIT_SUCCESS
, SENSOR_INIT_UNSPECIFIED_ERROR
} |
|
enum | TEMP_THRESHOLD_TYPE_E {
LOCAL_HIGH_LIMIT
, LOCAL_LOW_LIMIT
, REMOTE_1_HIGH_LIMIT
, REMOTE_1_LOW_LIMIT
,
REMOTE_2_HIGH_LIMIT
, REMOTE_2_LOW_LIMIT
, LOCAL_THERM_LIMIT
, REMOTE_1_THERM_LIMIT
,
REMOTE_2_THERM_LIMIT
, TEMP_THRESHOLD_TYPE_E_MAX
} |
|
void pal_extend_sensor_config |
( |
void |
| ) |
|
EVT2 switch board has two configurations that will cause the need to load different sensor table.
1st : ISL69259(VR) + MPS5990(HSC) + ISL28022(Power monitor IC) 2nd : XDPE12284(VR) + LTC4282(HSC) + INA230(Power monitor IC)
Since the BOARD_ID pins were originally used to identify which configuration has no function in this stage, so the current configuration is identified by IC_DEVICE_ID which gets from the VR chip.
The way to identify different configurations by BOARD_ID will be added back in the next stage.