|
OpenBIC
OpenSource Bridge-IC
|
#include "plat_sensor_table.h"#include <stdlib.h>#include <stdio.h>#include <string.h>#include <logging/log.h>#include "sensor.h"#include "ast_adc.h"#include "intel_peci.h"#include "hal_gpio.h"#include "plat_gpio.h"#include "plat_hook.h"#include "plat_i2c.h"#include "power_status.h"#include "pmbus.h"#include "tmp431.h"#include "libutil.h"#include "i2c-mux-tca9548.h"#include "isl28022.h"#include "pex89000.h"#include "util_sys.h"#include "plat_class.h"#include "plat_pldm_monitor.h"#include "plat_fru.h"#include "plat_mctp.h"
Functions | |
| LOG_MODULE_REGISTER (plat_sensor_table) | |
| void | update_nic_sensor_config_for_pollara (void) |
| void | load_sensor_config (void) |
| void | pal_extend_sensor_config () |
| uint8_t | pal_get_extend_sensor_config () |
| bool | is_e1s_access (uint8_t sensor_num) |
| bool | is_nic_access (uint8_t sensor_num) |
| bool | is_nic_optics_access (uint8_t sensor_num) |
| bool | is_dc_access (uint8_t sensor_num) |
| bool is_dc_access | ( | uint8_t | sensor_num | ) |

| bool is_e1s_access | ( | uint8_t | sensor_num | ) |

| bool is_nic_access | ( | uint8_t | sensor_num | ) |

| bool is_nic_optics_access | ( | uint8_t | sensor_num | ) |

| void load_sensor_config | ( | void | ) |

| LOG_MODULE_REGISTER | ( | plat_sensor_table | ) |
| 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.

| uint8_t pal_get_extend_sensor_config | ( | void | ) |

| void update_nic_sensor_config_for_pollara | ( | void | ) |

| sensor_cfg dvt_pex_sensor_config_table[] |
| sensor_cfg evt_pex_sensor_config_table[] |
| sensor_cfg ina230_power_monitor_sensor_config_table[] |
| sensor_cfg isl28022_power_monitor_sensor_config_table[] |
| sensor_cfg isl69259_vr_sensor_config_table[] |
| sensor_cfg ltc4282_hsc_sensor_config_table[] |
| sensor_cfg ltc4286_hsc_sensor_config_table[] |
| sensor_cfg mp2971_vr_sensor_config_table[] |
| sensor_cfg mp5990_hsc_sensor_config_table[] |
| sensor_cfg plat_sensor_config[] |
| const int SENSOR_CONFIG_SIZE = ARRAY_SIZE(plat_sensor_config) |
| sensor_cfg xdpe12284_vr_sensor_config_table[] |