From f4d6e9085d59513b2dccf95138415661a1f7a75a Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Fri, 1 Oct 2021 14:39:39 +0800 Subject: soc/mediatek: add debug dump for ltiming and clock_div ltiming and clock_div are not support for MT8173, so we separate them to weak function: mtk_i2c_dump_more_info() Signed-off-by: Rex-BC Chen Change-Id: I3228c6953be5fac18a76029702b878a34c7563f7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58074 Reviewed-by: Rex-BC Chen Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/soc/mediatek/mt8195/i2c.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/soc/mediatek/mt8195') 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)); +} -- cgit v1.2.3