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

Go to the source code of this file.

Macros

#define PCA6414A_INPUT_PORT_0   0x00
 
#define PCA6414A_INPUT_PORT_1   0x01
 
#define PCA6414A_OUTPUT_PORT_0   0x02
 
#define PCA6414A_OUTPUT_PORT_1   0x03
 
#define PCA6414A_CONFIG_0   0x06
 
#define PCA6414A_CONFIG_1   0x07
 
#define TCA6424A_INPUT_PORT_0   0x00
 
#define TCA6424A_INPUT_PORT_1   0x01
 
#define TCA6424A_INPUT_PORT_2   0x02
 
#define TCA6424A_OUTPUT_PORT_0   0x04
 
#define TCA6424A_OUTPUT_PORT_1   0x05
 
#define TCA6424A_OUTPUT_PORT_2   0x06
 
#define TCA6424A_CONFIG_0   0x0C
 
#define TCA6424A_CONFIG_1   0x0D
 
#define TCA6424A_CONFIG_2   0x0E
 
#define U200052_IO_ADDR   0x3A
 
#define U200053_IO_ADDR   0x3B
 
#define U200070_IO_ADDR   0x3C
 
#define U200051_IO_I2C_BUS   I2C_BUS1
 
#define U200052_IO_I2C_BUS   I2C_BUS1
 
#define U200053_IO_I2C_BUS   I2C_BUS1
 
#define U200070_IO_I2C_BUS   I2C_BUS1
 
#define U200052_IO_INIT_VAL   0xC0
 
#define U200053_IO_INIT_VAL   0x40
 
#define U200070_IO_INIT_VAL   0x07
 
#define HAMSA_MFIO19   1
 
#define HAMSA_MFIO6   6
 
#define HAMSA_MFIO8   7
 
#define HAMSA_MFIO10   0
 
#define MEDHA0_MFIO6   7
 
#define MEDHA0_MFIO8   6
 
#define MEDHA0_MFIO10   5
 
#define MEDHA1_MFIO6   4
 
#define MEDHA1_MFIO8   3
 
#define MEDHA1_MFIO10   2
 

Functions

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 is_tca6424a_accessible ()
 
bool tca6424a_i2c_read (uint8_t offset, uint8_t *data, uint8_t len)
 
bool tca6424a_i2c_read_drive_value (uint8_t group, uint8_t bit, uint8_t *data)
 
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)
 
void set_hamsa_mfio_6_8_10_input ()
 
void set_medha0_mfio_6_8_10_input ()
 
void set_medha1_mfio_6_8_10_input ()
 
void set_hamsa_mfio_6_8_10_output ()
 
void set_medha0_mfio_6_8_10_output ()
 
void set_medha1_mfio_6_8_10_output ()
 
void ioexp_init (void)
 
void init_U200052_IO ()
 
void init_U200053_IO ()
 
void init_U200070_IO ()
 
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)
 

Macro Definition Documentation

◆ HAMSA_MFIO10

#define HAMSA_MFIO10   0

◆ HAMSA_MFIO19

#define HAMSA_MFIO19   1

◆ HAMSA_MFIO6

#define HAMSA_MFIO6   6

◆ HAMSA_MFIO8

#define HAMSA_MFIO8   7

◆ MEDHA0_MFIO10

#define MEDHA0_MFIO10   5

◆ MEDHA0_MFIO6

#define MEDHA0_MFIO6   7

◆ MEDHA0_MFIO8

#define MEDHA0_MFIO8   6

◆ MEDHA1_MFIO10

#define MEDHA1_MFIO10   2

◆ MEDHA1_MFIO6

#define MEDHA1_MFIO6   4

◆ MEDHA1_MFIO8

#define MEDHA1_MFIO8   3

◆ PCA6414A_CONFIG_0

#define PCA6414A_CONFIG_0   0x06

◆ PCA6414A_CONFIG_1

#define PCA6414A_CONFIG_1   0x07

◆ PCA6414A_INPUT_PORT_0

#define PCA6414A_INPUT_PORT_0   0x00

◆ PCA6414A_INPUT_PORT_1

#define PCA6414A_INPUT_PORT_1   0x01

◆ PCA6414A_OUTPUT_PORT_0

#define PCA6414A_OUTPUT_PORT_0   0x02

◆ PCA6414A_OUTPUT_PORT_1

#define PCA6414A_OUTPUT_PORT_1   0x03

◆ TCA6424A_CONFIG_0

#define TCA6424A_CONFIG_0   0x0C

◆ TCA6424A_CONFIG_1

#define TCA6424A_CONFIG_1   0x0D

◆ TCA6424A_CONFIG_2

#define TCA6424A_CONFIG_2   0x0E

◆ TCA6424A_INPUT_PORT_0

#define TCA6424A_INPUT_PORT_0   0x00

◆ TCA6424A_INPUT_PORT_1

#define TCA6424A_INPUT_PORT_1   0x01

◆ TCA6424A_INPUT_PORT_2

#define TCA6424A_INPUT_PORT_2   0x02

◆ TCA6424A_OUTPUT_PORT_0

#define TCA6424A_OUTPUT_PORT_0   0x04

◆ TCA6424A_OUTPUT_PORT_1

#define TCA6424A_OUTPUT_PORT_1   0x05

◆ TCA6424A_OUTPUT_PORT_2

#define TCA6424A_OUTPUT_PORT_2   0x06

◆ U200051_IO_I2C_BUS

#define U200051_IO_I2C_BUS   I2C_BUS1

◆ U200052_IO_ADDR

#define U200052_IO_ADDR   0x3A

◆ U200052_IO_I2C_BUS

#define U200052_IO_I2C_BUS   I2C_BUS1

◆ U200052_IO_INIT_VAL

#define U200052_IO_INIT_VAL   0xC0

◆ U200053_IO_ADDR

#define U200053_IO_ADDR   0x3B

◆ U200053_IO_I2C_BUS

#define U200053_IO_I2C_BUS   I2C_BUS1

◆ U200053_IO_INIT_VAL

#define U200053_IO_INIT_VAL   0x40

◆ U200070_IO_ADDR

#define U200070_IO_ADDR   0x3C

◆ U200070_IO_I2C_BUS

#define U200070_IO_I2C_BUS   I2C_BUS1

◆ U200070_IO_INIT_VAL

#define U200070_IO_INIT_VAL   0x07

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:

◆ init_U200053_IO()

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

◆ init_U200070_IO()

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

◆ ioexp_init()

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

◆ is_tca6424a_accessible()

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

◆ 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:

◆ set_hamsa_mfio_6_8_10_input()

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

◆ set_hamsa_mfio_6_8_10_output()

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

◆ set_medha0_mfio_6_8_10_input()

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

◆ set_medha0_mfio_6_8_10_output()

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

◆ set_medha1_mfio_6_8_10_input()

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

◆ set_medha1_mfio_6_8_10_output()

void set_medha1_mfio_6_8_10_output ( )
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_read_drive_value()

bool tca6424a_i2c_read_drive_value ( uint8_t  group,
uint8_t  bit,
uint8_t *  data 
)
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: