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

Go to the source code of this file.

Data Structures

struct  mt_i2c_regs
 

Macros

#define I2C_CLK_HZ   (UNIVPLL_HZ / 20)
 
#define I2C_BUS_NUMBER   7
 
#define MAX_CLOCK_DIV   32
 

Functions

 check_member (mt_i2c_regs, multi_dma, 0xf8c)
 
void mtk_i2c_bus_init (uint8_t bus)
 

Macro Definition Documentation

◆ I2C_BUS_NUMBER

#define I2C_BUS_NUMBER   7

Definition at line 44 of file i2c.h.

◆ I2C_CLK_HZ

#define I2C_CLK_HZ   (UNIVPLL_HZ / 20)

Definition at line 43 of file i2c.h.

◆ MAX_CLOCK_DIV

#define MAX_CLOCK_DIV   32

Definition at line 45 of file i2c.h.

Function Documentation

◆ check_member()

check_member ( mt_i2c_regs  ,
multi_dma  ,
0xf8c   
)

◆ mtk_i2c_bus_init()

void mtk_i2c_bus_init ( uint8_t  bus)

Definition at line 65 of file i2c.c.