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_BUS_NUMBER   10
 
#define MAX_CLOCK_DIV   32
 
#define I2C_CLK_HZ   (UNIV2PLL_HZ / 20)
 

Enumerations

enum  {
  I2C0 , I2C1 , I2C2 , I2C3 ,
  I2C4 , I2C5 , I2C6 , I2C7 ,
  I2C8 , I2C9
}
 

Functions

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

Macro Definition Documentation

◆ I2C_BUS_NUMBER

#define I2C_BUS_NUMBER   10

Definition at line 62 of file i2c.h.

◆ I2C_CLK_HZ

#define I2C_CLK_HZ   (UNIV2PLL_HZ / 20)

Definition at line 64 of file i2c.h.

◆ MAX_CLOCK_DIV

#define MAX_CLOCK_DIV   32

Definition at line 63 of file i2c.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
I2C0 
I2C1 
I2C2 
I2C3 
I2C4 
I2C5 
I2C6 
I2C7 
I2C8 
I2C9 

Definition at line 49 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,
uint32_t  speed 
)

Definition at line 122 of file i2c.c.