OpenBIC
OpenSource Bridge-IC
|
#include <string.h>
#include <logging/log.h>
#include "ast_adc.h"
#include "sensor.h"
#include "power_status.h"
#include "pmbus.h"
#include "pt5161l.h"
#include "ina233.h"
#include "plat_i2c.h"
#include "plat_sensor_table.h"
#include "plat_hook.h"
#include "plat_class.h"
#include "plat_power_seq.h"
#include "ipmi.h"
#include "libipmi.h"
Functions | |
LOG_MODULE_REGISTER (plat_sensor) | |
bool | e1s_access (uint8_t sensor_num) |
bool | retimer_access (uint8_t sensor_num) |
bool | edge_access (uint8_t sensor_num) |
void | load_sensor_config (void) |
uint8_t | pal_get_extend_sensor_config () |
int | check_pwr_monitor_type (void) |
void | change_ina233_sensor_addr () |
void | change_power_monitor_config_for_sq5220x (void) |
void | pal_change_sensor_config_number () |
void | pal_extend_sensor_config () |
Variables | |
bool | is_pwr_mnt_first_read [] = { false, false, false, false, false } |
sensor_cfg | plat_sensor_config [] |
sensor_cfg | plat_expansion_A_sensor_config [] |
sensor_cfg | plat_expansion_B_sensor_config [] |
const int | SENSOR_CONFIG_SIZE = ARRAY_SIZE(plat_sensor_config) |
void change_ina233_sensor_addr | ( | void | ) |
void change_power_monitor_config_for_sq5220x | ( | void | ) |
int check_pwr_monitor_type | ( | void | ) |
bool e1s_access | ( | uint8_t | sensor_num | ) |
bool edge_access | ( | uint8_t | sensor_num | ) |
void load_sensor_config | ( | void | ) |
LOG_MODULE_REGISTER | ( | plat_sensor | ) |
void pal_change_sensor_config_number | ( | void | ) |
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 | ) |
bool retimer_access | ( | uint8_t | sensor_num | ) |
bool is_pwr_mnt_first_read[] = { false, false, false, false, false } |
sensor_cfg plat_expansion_A_sensor_config[] |
sensor_cfg plat_expansion_B_sensor_config[] |
sensor_cfg plat_sensor_config[] |
const int SENSOR_CONFIG_SIZE = ARRAY_SIZE(plat_sensor_config) |