coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
i2c.h File Reference
#include <soc/gpio.h>
#include <types.h>
Include dependency graph for i2c.h:

Go to the source code of this file.

Macros

#define GPIO_I2C0_SCL   BIT(0)
 
#define GPIO_I2C1_SCL   BIT(1)
 
#define GPIO_I2C2_SCL   BIT(2)
 
#define GPIO_I2C3_SCL   BIT(3)
 
#define GPIO_I2C_MASK   (BIT(0) | BIT(1) | BIT(2) | BIT(3))
 
#define I2C0_SCL_PIN   GPIO_145
 
#define I2C1_SCL_PIN   GPIO_147
 
#define I2C2_SCL_PIN   GPIO_113
 
#define I2C3_SCL_PIN   GPIO_19
 
#define I2C0_SCL_PIN_IOMUX_GPIOxx   GPIO_145_IOMUX_GPIOxx
 
#define I2C1_SCL_PIN_IOMUX_GPIOxx   GPIO_147_IOMUX_GPIOxx
 
#define I2C2_SCL_PIN_IOMUX_GPIOxx   GPIO_113_IOMUX_GPIOxx
 
#define I2C3_SCL_PIN_IOMUX_GPIOxx   GPIO_19_IOMUX_GPIOxx
 

Functions

void i2c_set_bar (unsigned int bus, uintptr_t bar)
 

Macro Definition Documentation

◆ GPIO_I2C0_SCL

#define GPIO_I2C0_SCL   BIT(0)

Definition at line 9 of file i2c.h.

◆ GPIO_I2C1_SCL

#define GPIO_I2C1_SCL   BIT(1)

Definition at line 10 of file i2c.h.

◆ GPIO_I2C2_SCL

#define GPIO_I2C2_SCL   BIT(2)

Definition at line 11 of file i2c.h.

◆ GPIO_I2C3_SCL

#define GPIO_I2C3_SCL   BIT(3)

Definition at line 12 of file i2c.h.

◆ GPIO_I2C_MASK

#define GPIO_I2C_MASK   (BIT(0) | BIT(1) | BIT(2) | BIT(3))

Definition at line 13 of file i2c.h.

◆ I2C0_SCL_PIN

#define I2C0_SCL_PIN   GPIO_145

Definition at line 16 of file i2c.h.

◆ I2C0_SCL_PIN_IOMUX_GPIOxx

#define I2C0_SCL_PIN_IOMUX_GPIOxx   GPIO_145_IOMUX_GPIOxx

Definition at line 21 of file i2c.h.

◆ I2C1_SCL_PIN

#define I2C1_SCL_PIN   GPIO_147

Definition at line 17 of file i2c.h.

◆ I2C1_SCL_PIN_IOMUX_GPIOxx

#define I2C1_SCL_PIN_IOMUX_GPIOxx   GPIO_147_IOMUX_GPIOxx

Definition at line 22 of file i2c.h.

◆ I2C2_SCL_PIN

#define I2C2_SCL_PIN   GPIO_113

Definition at line 18 of file i2c.h.

◆ I2C2_SCL_PIN_IOMUX_GPIOxx

#define I2C2_SCL_PIN_IOMUX_GPIOxx   GPIO_113_IOMUX_GPIOxx

Definition at line 23 of file i2c.h.

◆ I2C3_SCL_PIN

#define I2C3_SCL_PIN   GPIO_19

Definition at line 19 of file i2c.h.

◆ I2C3_SCL_PIN_IOMUX_GPIOxx

#define I2C3_SCL_PIN_IOMUX_GPIOxx   GPIO_19_IOMUX_GPIOxx

Definition at line 24 of file i2c.h.

Function Documentation

◆ i2c_set_bar()

void i2c_set_bar ( unsigned int  bus,
uintptr_t  bar 
)

Definition at line 24 of file i2c.c.