OpenBIC
OpenSource Bridge-IC
plat_ioexp.c File Reference
#include <logging/log.h>
#include "pldm_sensor.h"
#include "plat_i2c.h"
#include "plat_util.h"
#include "plat_ioexp.h"
#include "plat_class.h"
#include "plat_pldm_sensor.h"
Include dependency graph for plat_ioexp.c:

Macros

#define PCA6414A_BUS   I2C_BUS1
 
#define PCA6414A_ADDR   (0x40 >> 1)
 
#define TCA6424A_BUS   I2C_BUS1
 
#define TCA6424A_ADDR   (0x44 >> 1)
 
#define TCA6424A_AI_BIT   BIT(7)
 

Functions

 LOG_MODULE_REGISTER (plat_ioexp)
 
bool pca6416a_i2c_read (uint8_t offset, uint8_t *data, uint8_t len)
 
bool pca6416a_i2c_write (uint8_t offset, uint8_t *data, uint8_t len)
 
bool pca6416a_init (void)
 
bool tca6424a_i2c_read (uint8_t offset, uint8_t *data, uint8_t len)
 
bool tca6424a_i2c_write (uint8_t offset, uint8_t *data, uint8_t len)
 
bool tca6424a_i2c_write_bit (uint8_t offset, uint8_t bit, uint8_t val)
 
bool tca6424a_init (void)
 
void ioexp_init (void)
 
void set_pca6554apw_ioe_value (uint8_t ioe_bus, uint8_t ioe_addr, uint8_t ioe_reg, uint8_t value)
 
int get_pca6554apw_ioe_value (uint8_t ioe_bus, uint8_t ioe_addr, uint8_t ioe_reg, uint8_t *value)
 
void init_U200052_IO ()
 

Macro Definition Documentation

◆ PCA6414A_ADDR

#define PCA6414A_ADDR   (0x40 >> 1)

◆ PCA6414A_BUS

#define PCA6414A_BUS   I2C_BUS1

◆ TCA6424A_ADDR

#define TCA6424A_ADDR   (0x44 >> 1)

◆ TCA6424A_AI_BIT

#define TCA6424A_AI_BIT   BIT(7)

◆ TCA6424A_BUS

#define TCA6424A_BUS   I2C_BUS1

Function Documentation

◆ get_pca6554apw_ioe_value()

int get_pca6554apw_ioe_value ( uint8_t  ioe_bus,
uint8_t  ioe_addr,
uint8_t  ioe_reg,
uint8_t *  value 
)
Here is the call graph for this function:

◆ init_U200052_IO()

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

◆ ioexp_init()

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

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_ioexp  )

◆ pca6416a_i2c_read()

bool pca6416a_i2c_read ( uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ pca6416a_i2c_write()

bool pca6416a_i2c_write ( uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ pca6416a_init()

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

◆ set_pca6554apw_ioe_value()

void set_pca6554apw_ioe_value ( uint8_t  ioe_bus,
uint8_t  ioe_addr,
uint8_t  ioe_reg,
uint8_t  value 
)
Here is the call graph for this function:

◆ tca6424a_i2c_read()

bool tca6424a_i2c_read ( uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ tca6424a_i2c_write()

bool tca6424a_i2c_write ( uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ tca6424a_i2c_write_bit()

bool tca6424a_i2c_write_bit ( uint8_t  offset,
uint8_t  bit,
uint8_t  val 
)
Here is the call graph for this function:

◆ tca6424a_init()

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