diff options
-rw-r--r-- | src/soc/mediatek/mt8183/i2c.c | 7 | ||||
-rw-r--r-- | src/soc/mediatek/mt8192/i2c.c | 7 | ||||
-rw-r--r-- | src/soc/mediatek/mt8195/i2c.c | 7 |
3 files changed, 21 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8183/i2c.c b/src/soc/mediatek/mt8183/i2c.c index ec9b797934..3e53a72c5e 100644 --- a/src/soc/mediatek/mt8183/i2c.c +++ b/src/soc/mediatek/mt8183/i2c.c @@ -135,3 +135,10 @@ void mtk_i2c_bus_init(uint8_t bus) mtk_i2c_speed_init(bus); mtk_i2c_set_gpio_pinmux(bus); } + +void mtk_i2c_dump_more_info(struct mt_i2c_regs *regs) +{ + printk(BIOS_DEBUG, "LTIMING %x\nCLK_DIV %x\n", + read32(®s->ltiming), + read32(®s->clock_div)); +} diff --git a/src/soc/mediatek/mt8192/i2c.c b/src/soc/mediatek/mt8192/i2c.c index 572c2808d2..a76b0394c7 100644 --- a/src/soc/mediatek/mt8192/i2c.c +++ b/src/soc/mediatek/mt8192/i2c.c @@ -181,3 +181,10 @@ void mtk_i2c_bus_init(uint8_t bus) mtk_i2c_speed_init(bus); mtk_i2c_set_gpio_pinmux(bus); } + +void mtk_i2c_dump_more_info(struct mt_i2c_regs *regs) +{ + printk(BIOS_DEBUG, "LTIMING %x\nCLK_DIV %x\n", + read32(®s->ltiming), + read32(®s->clock_div)); +} diff --git a/src/soc/mediatek/mt8195/i2c.c b/src/soc/mediatek/mt8195/i2c.c index 960eb12a69..1a10eefe49 100644 --- a/src/soc/mediatek/mt8195/i2c.c +++ b/src/soc/mediatek/mt8195/i2c.c @@ -355,3 +355,10 @@ void mtk_i2c_bus_init(uint8_t bus, uint32_t speed) mtk_i2c_speed_init(bus, speed); mtk_i2c_set_gpio_pinmux(bus); } + +void mtk_i2c_dump_more_info(struct mt_i2c_regs *regs) +{ + printk(BIOS_DEBUG, "LTIMING %x\nCLK_DIV %x\n", + read32(®s->ltiming), + read32(®s->clock_div)); +} |