OpenBIC
OpenSource Bridge-IC
plat_hook.c File Reference
#include <stdio.h>
#include <string.h>
#include "libutil.h"
#include "ast_adc.h"
#include "sensor.h"
#include "hal_i2c.h"
#include "plat_sensor_table.h"
#include "plat_hook.h"
#include <logging/log.h>
#include "pmbus.h"
Include dependency graph for plat_hook.c:

Functions

 K_MUTEX_DEFINE (wait_pm8702_mutex)
 
 LOG_MODULE_REGISTER (plat_hook)
 
bool pre_vr_read (sensor_cfg *cfg, void *args)
 
bool pre_isl69254iraz_t_read (sensor_cfg *cfg, void *args)
 
bool post_isl69254iraz_t_read (sensor_cfg *cfg, void *args, int *reading)
 
bool pre_pm8702_read (sensor_cfg *cfg, void *args)
 
bool post_pm8702_read (sensor_cfg *cfg, void *args, int *reading)
 

Variables

adc_asd_init_arg adc_asd_init_args [] = { [0] = { .is_init = false } }
 
pm8702_dimm_init_arg pm8702_dimm_init_args []
 
ina233_init_arg ina233_init_args []
 
isl69254iraz_t_pre_arg isl69254iraz_t_pre_read_args []
 
vr_pre_proc_arg vr_page_select []
 
ina230_init_arg SQ5220x_init_args []
 

Function Documentation

◆ K_MUTEX_DEFINE()

K_MUTEX_DEFINE ( wait_pm8702_mutex  )

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_hook  )

◆ post_isl69254iraz_t_read()

bool post_isl69254iraz_t_read ( sensor_cfg cfg,
void *  args,
int *  reading 
)

◆ post_pm8702_read()

bool post_pm8702_read ( sensor_cfg cfg,
void *  args,
int *  reading 
)

◆ pre_isl69254iraz_t_read()

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

◆ pre_pm8702_read()

bool pre_pm8702_read ( sensor_cfg cfg,
void *  args 
)

◆ pre_vr_read()

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

Variable Documentation

◆ adc_asd_init_args

adc_asd_init_arg adc_asd_init_args[] = { [0] = { .is_init = false } }

◆ ina233_init_args

ina233_init_arg ina233_init_args[]

◆ isl69254iraz_t_pre_read_args

isl69254iraz_t_pre_arg isl69254iraz_t_pre_read_args[]
Initial value:
= {
[0] = { 0x0 },
[1] = { 0x1 },
}

◆ pm8702_dimm_init_args

pm8702_dimm_init_arg pm8702_dimm_init_args[]
Initial value:
= { [0] = { .is_init = false, .dimm_id = 0x41 },
[1] = { .is_init = false, .dimm_id = 0x42 },
[2] = { .is_init = false, .dimm_id = 0x43 },
[3] = { .is_init = false, .dimm_id = 0x44 } }

◆ SQ5220x_init_args

ina230_init_arg SQ5220x_init_args[]

◆ vr_page_select

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