OpenBIC
OpenSource Bridge-IC
plat_i2c.h File Reference
#include "hal_i2c.h"
Include dependency graph for plat_i2c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define I2C_BUS1   0
 
#define I2C_BUS2   1
 
#define I2C_BUS3   2
 
#define I2C_BUS4   3
 
#define I2C_BUS5   4
 
#define I2C_BUS6   5
 
#define I2C_BUS7   6
 
#define I2C_BUS8   7
 
#define I2C_BUS9   8
 
#define IPMB_I2C_BMC   I2C_BUS7
 
#define I2C_BUS_MAX_NUM   9
 
#define SB_CPLD_BUS   I2C_BUS1
 
#define SB_CPLD_ADDR   0x21
 
#define SB_CPLD_SPI_OOB_FROM_CPU   0x02
 
#define SB_CPLD_REG_BOARD_CLASS_TYPE   0x05
 
#define SB_CPLD_REG_BOARD_REVISION_ID   0x08
 
#define SB_CPLD_REG_1OU_CARD_DETECTION   0x09
 
#define SB_CPLD_SPI_OOB_FROM_BIC   0x0B
 
#define SB_CPLD_REG_SPI_OOB_CONTROL   0x0C
 
#define SB_CPLD_REG_ADR_MODE0_GPIO_CTRL   0x16
 
#define SB_CPLD_REG_POWER_SEQ   0x3
 

Macro Definition Documentation

◆ I2C_BUS1

#define I2C_BUS1   0

◆ I2C_BUS2

#define I2C_BUS2   1

◆ I2C_BUS3

#define I2C_BUS3   2

◆ I2C_BUS4

#define I2C_BUS4   3

◆ I2C_BUS5

#define I2C_BUS5   4

◆ I2C_BUS6

#define I2C_BUS6   5

◆ I2C_BUS7

#define I2C_BUS7   6

◆ I2C_BUS8

#define I2C_BUS8   7

◆ I2C_BUS9

#define I2C_BUS9   8

◆ I2C_BUS_MAX_NUM

#define I2C_BUS_MAX_NUM   9

◆ IPMB_I2C_BMC

#define IPMB_I2C_BMC   I2C_BUS7

◆ SB_CPLD_ADDR

#define SB_CPLD_ADDR   0x21

◆ SB_CPLD_BUS

#define SB_CPLD_BUS   I2C_BUS1

◆ SB_CPLD_REG_1OU_CARD_DETECTION

#define SB_CPLD_REG_1OU_CARD_DETECTION   0x09

◆ SB_CPLD_REG_ADR_MODE0_GPIO_CTRL

#define SB_CPLD_REG_ADR_MODE0_GPIO_CTRL   0x16

◆ SB_CPLD_REG_BOARD_CLASS_TYPE

#define SB_CPLD_REG_BOARD_CLASS_TYPE   0x05

◆ SB_CPLD_REG_BOARD_REVISION_ID

#define SB_CPLD_REG_BOARD_REVISION_ID   0x08

◆ SB_CPLD_REG_POWER_SEQ

#define SB_CPLD_REG_POWER_SEQ   0x3

◆ SB_CPLD_REG_SPI_OOB_CONTROL

#define SB_CPLD_REG_SPI_OOB_CONTROL   0x0C

◆ SB_CPLD_SPI_OOB_FROM_BIC

#define SB_CPLD_SPI_OOB_FROM_BIC   0x0B

◆ SB_CPLD_SPI_OOB_FROM_CPU

#define SB_CPLD_SPI_OOB_FROM_CPU   0x02