OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <string.h>
#include <logging/log.h>
#include "ast_adc.h"
#include "sensor.h"
#include "libutil.h"
#include "m88rt51632.h"
#include "rg3mxxb12.h"
#include "p3h284x.h"
#include "plat_class.h"
#include "plat_i2c.h"
#include "plat_hook.h"
#include "plat_sensor_table.h"
#include "plat_gpio.h"
Macros | |
#define | RETIMER_INIT_RETRY_COUNT 3 |
Functions | |
LOG_MODULE_DECLARE (sensor) | |
K_MUTEX_DEFINE (i2c_hub_mutex) | |
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 () |
#define RETIMER_INIT_RETRY_COUNT 3 |
K_MUTEX_DEFINE | ( | i2c_hub_mutex | ) |
LOG_MODULE_DECLARE | ( | sensor | ) |
bool post_i2c_bus_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
close all channels after the sensor read to avoid conflict with other devices reading.
void post_retimer_eeprom_recover | ( | ) |
bool pre_i2c_bus_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
void pre_retimer_eeprom_recover | ( | ) |
bool pre_retimer_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
adc_asd_init_arg adc_expa_asd_init_args[] |
adc_asd_init_arg adc_expb_asd_init_args[] |
i2c_proc_arg i2c_proc_args[] |
ina233_init_arg ina233_init_args[] |
pt5161l_init_arg pt5161l_init_args[] |
sq52205_init_arg sq52205_init_args[] |