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   (AXI_HZ / 16)
 
#define I2C_BUS_NUMBER   7
 
#define MAX_CLOCK_DIV   32
 

Functions

 check_member (mt_i2c_regs, debug_stat, 0x64)
 
void mtk_i2c_bus_init (uint8_t bus)
 

Macro Definition Documentation

◆ I2C_BUS_NUMBER

#define I2C_BUS_NUMBER   7

Definition at line 40 of file i2c.h.

◆ I2C_CLK_HZ

#define I2C_CLK_HZ   (AXI_HZ / 16)

Definition at line 39 of file i2c.h.

◆ MAX_CLOCK_DIV

#define MAX_CLOCK_DIV   32

Definition at line 41 of file i2c.h.

Function Documentation

◆ check_member()

check_member ( mt_i2c_regs  ,
debug_stat  ,
0x64   
)

◆ mtk_i2c_bus_init()

void mtk_i2c_bus_init ( uint8_t  bus)

Definition at line 65 of file i2c.c.