coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
i2c.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_MEDIATEK_MT8173_I2C_H
4 #define SOC_MEDIATEK_MT8173_I2C_H
5 
6 #include <soc/i2c_common.h>
7 #include <soc/pll.h>
8 
9 /* I2C Register */
10 struct mt_i2c_regs {
37 };
38 
39 #define I2C_CLK_HZ (AXI_HZ / 16)
40 #define I2C_BUS_NUMBER 7
41 #define MAX_CLOCK_DIV 32
42 
43 check_member(mt_i2c_regs, debug_stat, 0x64);
44 
46 
47 #endif /* SOC_MEDIATEK_MT8173_I2C_H */
check_member(mt_i2c_regs, debug_stat, 0x64)
void mtk_i2c_bus_init(uint8_t bus)
Definition: i2c.c:65
unsigned int uint32_t
Definition: stdint.h:14
unsigned char uint8_t
Definition: stdint.h:8
Definition: device.h:76
uint32_t hs
Definition: i2c.h:29
uint32_t data_port
Definition: i2c.h:11
uint32_t softreset
Definition: i2c.h:31
uint32_t slave_addr
Definition: i2c.h:12
uint32_t control
Definition: i2c.h:15
uint32_t transfer_len
Definition: i2c.h:16
uint32_t transac_len
Definition: i2c.h:17
uint32_t delay_len
Definition: i2c.h:18
uint32_t debug
Definition: i2c.h:28
uint32_t start
Definition: i2c.h:20
uint32_t reserved1
Definition: i2c.h:22
uint32_t fifo_addr_clr
Definition: i2c.h:25
uint32_t reserved4[3]
Definition: i2c.h:33
uint32_t reserved3
Definition: i2c.h:30
uint32_t transfer_aux_len
Definition: i2c.h:36
uint32_t intr_mask
Definition: i2c.h:13
uint32_t debug_stat
Definition: i2c.h:34
uint32_t debug_ctrl
Definition: i2c.h:35
uint32_t reserved2
Definition: i2c.h:26
uint32_t dcm
Definition: i2c.h:32
uint32_t fifo_stat
Definition: i2c.h:23
uint32_t intr_stat
Definition: i2c.h:14
uint32_t fifo_thresh
Definition: i2c.h:24
uint32_t ext_conf
Definition: i2c.h:21
uint32_t timing
Definition: i2c.h:19
uint32_t io_config
Definition: i2c.h:27