OpenBIC
OpenSource Bridge-IC
plat_hook.c File Reference
#include <logging/log.h>
#include <drivers/peci.h>
#include "sensor.h"
#include "intel_peci.h"
#include "intel_dimm.h"
#include "power_status.h"
#include "i2c-mux-tca9548.h"
#include "libutil.h"
#include "hal_peci.h"
#include "plat_hook.h"
#include "plat_sensor_table.h"
#include "plat_gpio.h"
Include dependency graph for plat_hook.c:

Functions

 LOG_MODULE_REGISTER (plat_hook)
 
bool pre_vr_read (sensor_cfg *cfg, void *args)
 

Variables

vr_pre_read_arg vr_pre_read_args []
 
adc_asd_init_arg ast_adc_init_args []
 
ina233_init_arg ina233_init_args []
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_hook  )

◆ pre_vr_read()

bool pre_vr_read ( sensor_cfg cfg,
void *  args 
)
Here is the call graph for this function:

Variable Documentation

◆ ast_adc_init_args

adc_asd_init_arg ast_adc_init_args[]
Initial value:
= {
[0] = { .is_init = false,
.deglitch[0] = { .deglitch_en = false,},
.deglitch[1] = { .deglitch_en = false,},
.deglitch[2] = { .deglitch_en = false,},
.deglitch[3] = { .deglitch_en = false,},
.deglitch[4] = { .deglitch_en = false,},
.deglitch[5] = { .deglitch_en = false,},
},
[1] = {
.is_init = false,
.deglitch[0] = { .deglitch_en = false,},
.deglitch[1] = { .deglitch_en = false,},
.deglitch[2] = { .deglitch_en = false,},
.deglitch[4] = { .deglitch_en = false,},
.deglitch[5] = { .deglitch_en = false,},
.deglitch[6] = { .deglitch_en = false,},
}
}

◆ ina233_init_args

ina233_init_arg ina233_init_args[]
Initial value:
= {
[0] = {
.is_init = false,
.current_lsb = 0.005,
.r_shunt = 0.001,
.mfr_config_init = false,
.is_need_mfr_device_config_init = false,
.is_need_set_alert_threshold = false,
},
}

◆ vr_pre_read_args

vr_pre_read_arg vr_pre_read_args[]
Initial value:
= {
[0] = { 0x0 },
[1] = { 0x1 },
}