17 .i2c_regs = (
void *)(
I2C_BASE + 0x1000),
22 .i2c_regs = (
void *)(
I2C_BASE + 0x2000),
27 .i2c_regs = (
void *)(
I2C_BASE + 0x3000),
32 .i2c_regs = (
void *)(
I2C_BASE + 0x4000),
37 .i2c_regs = (
void *)(
I2C_BASE - 0x100000),
42 .i2c_regs = (
void *)(
I2C_BASE - 0xFF000),
47 .i2c_regs = (
void *)(
I2C_BASE - 0xFE000),
54 "Wrong size of mtk_i2c_bus_controller");
61 #define PAD_FUNC(name, func) {GPIO(name), PAD_##name##_FUNC_##func}
104 for (
size_t i = 0; i < 2; i++) {
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
#define assert(statement)
#define printk(level,...)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
struct mt_i2c_regs * i2c_regs
struct mtk_i2c_ac_timing ac_timing