OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <string.h>
#include <logging/log.h>
#include "plat_hook.h"
#include "plat_class.h"
#include "nct7363.h"
#include "ina238.h"
#include "plat_i2c.h"
#include "sensor.h"
#include "nct214.h"
#include "libutil.h"
#include "plat_sensor_table.h"
Macros | |
#define | FB_PRSNT_NUM_PER_IOEXP 7 |
#define | FB_PWR_PRSNT_ADDR_EVEN 0x4A |
#define | FB_PWR_PRSNT_ADDR_ODD 0x4E |
#define | FB_SIG_PRSNT_ADDR_EVEN 0x4A |
#define | FB_SIG_PRSNT_ADDR_ODD 0x4E |
Functions | |
LOG_MODULE_REGISTER (plat_hook) | |
K_MUTEX_DEFINE (i2c_1_PCA9546a_mutex) | |
K_MUTEX_DEFINE (i2c_2_PCA9546a_mutex) | |
K_MUTEX_DEFINE (i2c_6_PCA9546a_mutex) | |
K_MUTEX_DEFINE (i2c_7_PCA9546a_mutex) | |
K_MUTEX_DEFINE (i2c_8_PCA9546a_mutex) | |
K_MUTEX_DEFINE (i2c_9_PCA9546a_mutex) | |
struct k_mutex * | get_i2c_mux_mutex (uint8_t i2c_bus) |
bool | pre_PCA9546A_read (sensor_cfg *cfg, void *args) |
bool | post_PCA9546A_read (sensor_cfg *cfg, void *args, int *reading) |
bool | post_adm1272_read (sensor_cfg *cfg, void *args, int *reading) |
bool | post_ads112c_read (sensor_cfg *cfg, void *args, int *reading) |
bool | get_fb_present_status (uint16_t *fb_present_status) |
#define FB_PRSNT_NUM_PER_IOEXP 7 |
#define FB_PWR_PRSNT_ADDR_EVEN 0x4A |
#define FB_PWR_PRSNT_ADDR_ODD 0x4E |
#define FB_SIG_PRSNT_ADDR_EVEN 0x4A |
#define FB_SIG_PRSNT_ADDR_ODD 0x4E |
bool get_fb_present_status | ( | uint16_t * | fb_present_status | ) |
struct k_mutex * get_i2c_mux_mutex | ( | uint8_t | i2c_bus | ) |
K_MUTEX_DEFINE | ( | i2c_1_PCA9546a_mutex | ) |
K_MUTEX_DEFINE | ( | i2c_2_PCA9546a_mutex | ) |
K_MUTEX_DEFINE | ( | i2c_6_PCA9546a_mutex | ) |
K_MUTEX_DEFINE | ( | i2c_7_PCA9546a_mutex | ) |
K_MUTEX_DEFINE | ( | i2c_8_PCA9546a_mutex | ) |
K_MUTEX_DEFINE | ( | i2c_9_PCA9546a_mutex | ) |
LOG_MODULE_REGISTER | ( | plat_hook | ) |
bool post_adm1272_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_ads112c_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_PCA9546A_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool pre_PCA9546A_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
adc_asd_init_arg adc_asd_init_args[] |
adm1272_init_arg adm1272_init_args[] |
ads112c_init_arg ads112c_init_args[] |
ads112c_post_arg ads112c_post_args[] |
ast_tach_init_arg ast_tach_init_args[] |
bmr4922302_803_init_arg bmr4922302_803_init_args[] |
mux_config bus_1_PCA9546A_configs[] |
mux_config bus_2_PCA9546A_configs[] |
mux_config bus_6_PCA9546A_configs[] |
mux_config bus_7_PCA9546A_configs[] |
mux_config bus_8_PCA9546A_configs[] |
mux_config bus_9_PCA9546A_configs[] |
e50sn12051_init_arg e50sn12051_init_args[] |
hdc1080_init_arg hdc1080_init_args[] |
ina238_init_arg ina238_init_args[] |
nct214_init_arg nct214_init_args[] |
nct7363_init_arg nct7363_init_args[] |
xdp710_init_arg xdp710_init_args[] |