OpenBIC
OpenSource Bridge-IC
plat_hook.c File Reference
#include <logging/log.h>
#include "power_status.h"
#include "apml.h"
#include "hal_gpio.h"
#include "plat_apml.h"
#include "plat_hook.h"
#include "plat_gpio.h"
#include "plat_dimm.h"
#include "pmbus.h"
Include dependency graph for plat_hook.c:

Macros

#define RETIMER_INIT_RETRY_COUNT   3
 

Functions

 LOG_MODULE_REGISTER (plat_hook)
 
bool pre_vr_read (sensor_cfg *cfg, void *args)
 
bool post_vr_read (sensor_cfg *cfg, void *args, int *const reading)
 
bool post_amd_tsi_read (sensor_cfg *cfg, void *args, int *const reading)
 
bool pre_dimm_i3c_read (sensor_cfg *cfg, void *args)
 
bool pre_p3v_bat_read (sensor_cfg *cfg, void *args)
 
bool post_p3v_bat_read (sensor_cfg *cfg, void *args, int *const reading)
 
bool pre_retimer_read (sensor_cfg *cfg, void *args)
 

Variables

adc_asd_init_arg ast_adc_init_args []
 
apml_mailbox_init_arg apml_mailbox_init_args [] = { [0] = { .data = 0x00000000, .retry = 0 } }
 
vr_pre_proc_arg vr_pre_read_args []
 
ina233_init_arg ina233_init_args []
 
sq52205_init_arg sq52205_init_args []
 
rtq6056_init_arg rtq6056_init_args []
 
pt5161l_init_arg pt5161l_init_args []
 

Macro Definition Documentation

◆ RETIMER_INIT_RETRY_COUNT

#define RETIMER_INIT_RETRY_COUNT   3

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_hook  )

◆ post_amd_tsi_read()

bool post_amd_tsi_read ( sensor_cfg cfg,
void *  args,
int *const  reading 
)
Here is the call graph for this function:

◆ post_p3v_bat_read()

bool post_p3v_bat_read ( sensor_cfg cfg,
void *  args,
int *const  reading 
)
Here is the call graph for this function:

◆ post_vr_read()

bool post_vr_read ( sensor_cfg cfg,
void *  args,
int *const  reading 
)
Here is the call graph for this function:

◆ pre_dimm_i3c_read()

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

◆ pre_p3v_bat_read()

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

◆ pre_retimer_read()

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

◆ pre_vr_read()

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

Variable Documentation

◆ apml_mailbox_init_args

apml_mailbox_init_arg apml_mailbox_init_args[] = { [0] = { .data = 0x00000000, .retry = 0 } }

◆ 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[]

◆ pt5161l_init_args

pt5161l_init_arg pt5161l_init_args[]
Initial value:
= { [0] = { .is_init = false,
.temp_cal_code_pma_a = { 0, 0, 0, 0 },
.temp_cal_code_pma_b = { 0, 0, 0, 0 },
.temp_cal_code_avg = 0 },
[1] = { .is_init = false,
.temp_cal_code_pma_a = { 0, 0, 0, 0 },
.temp_cal_code_pma_b = { 0, 0, 0, 0 },
.temp_cal_code_avg = 0 } }

◆ rtq6056_init_args

rtq6056_init_arg rtq6056_init_args[]
Initial value:
= {
[0] = {
.is_init = false,
.current_lsb = 0.001,
.r_shunt = 0.002,
},
[1] = {
.is_init = false,
.current_lsb = 0.001,
.r_shunt = 0.002,
},
[2] = {
.is_init = false,
.current_lsb = 0.001,
.r_shunt = 0.002,
},
[3] = {
.is_init = false,
.current_lsb = 0.001,
.r_shunt = 0.002,
},
}

◆ sq52205_init_args

sq52205_init_arg sq52205_init_args[]

◆ vr_pre_read_args

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