OpenBIC
OpenSource Bridge-IC
plat_hook.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _i2c_proc_arg
 

Macros

#define I2C_HUB_MUTEX_TIMEOUT_MS   300
 
#define I2C_HUB_CHANNEL_0   0x01
 
#define I2C_HUB_CHANNEL_1   0x02
 
#define I2C_HUB_CHANNEL_2   0x04
 
#define I2C_HUB_CHANNEL_3   0x08
 
#define I2C_HUB_CHANNEL_4   0x10
 
#define I2C_HUB_CHANNEL_5   0x20
 

Typedefs

typedef struct _i2c_proc_arg i2c_proc_arg
 

Functions

bool pre_i2c_bus_read (sensor_cfg *cfg, void *args)
 
bool post_i2c_bus_read (sensor_cfg *cfg, void *args, int *reading)
 
bool pre_retimer_read (sensor_cfg *cfg, void *args)
 
void pre_retimer_eeprom_recover ()
 
void post_retimer_eeprom_recover ()
 

Variables

adc_asd_init_arg adc_expa_asd_init_args []
 
adc_asd_init_arg adc_expb_asd_init_args []
 
ina233_init_arg ina233_init_args []
 
sq52205_init_arg sq52205_init_args []
 
i2c_proc_arg i2c_proc_args []
 
pt5161l_init_arg pt5161l_init_args []
 
struct k_mutex i2c_hub_mutex
 

Macro Definition Documentation

◆ I2C_HUB_CHANNEL_0

#define I2C_HUB_CHANNEL_0   0x01

◆ I2C_HUB_CHANNEL_1

#define I2C_HUB_CHANNEL_1   0x02

◆ I2C_HUB_CHANNEL_2

#define I2C_HUB_CHANNEL_2   0x04

◆ I2C_HUB_CHANNEL_3

#define I2C_HUB_CHANNEL_3   0x08

◆ I2C_HUB_CHANNEL_4

#define I2C_HUB_CHANNEL_4   0x10

◆ I2C_HUB_CHANNEL_5

#define I2C_HUB_CHANNEL_5   0x20

◆ I2C_HUB_MUTEX_TIMEOUT_MS

#define I2C_HUB_MUTEX_TIMEOUT_MS   300

Typedef Documentation

◆ i2c_proc_arg

typedef struct _i2c_proc_arg i2c_proc_arg

Function Documentation

◆ post_i2c_bus_read()

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

Because BUS9 has two mux behind 16 E1.S with the same i2c address, so close all mux channels after the sensor read to avoid conflict with other devices reading.

close all channels after the sensor read to avoid conflict with other devices reading.

Here is the call graph for this function:

◆ post_retimer_eeprom_recover()

void post_retimer_eeprom_recover ( )
Here is the call graph for this function:

◆ pre_i2c_bus_read()

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

◆ pre_retimer_eeprom_recover()

void pre_retimer_eeprom_recover ( )
Here is the call graph for this function:

◆ pre_retimer_read()

bool pre_retimer_read ( sensor_cfg cfg,
void *  args 
)

Variable Documentation

◆ adc_expa_asd_init_args

adc_asd_init_arg adc_expa_asd_init_args[]
extern

◆ adc_expb_asd_init_args

adc_asd_init_arg adc_expb_asd_init_args[]
extern

◆ i2c_hub_mutex

struct k_mutex i2c_hub_mutex
extern

◆ i2c_proc_args

i2c_proc_arg i2c_proc_args[]
extern

◆ ina233_init_args

ina233_init_arg ina233_init_args[]
extern

◆ pt5161l_init_args

pt5161l_init_arg pt5161l_init_args[]
extern

◆ sq52205_init_args

sq52205_init_arg sq52205_init_args[]
extern