From 4afefd648b28d4ebabd6d07790037e3e00c9ff03 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 5 Dec 2018 15:38:13 -0800 Subject: drivers/i2c/designware: Add soc_clock entry for 216MHz Add an entry to the soc_clock table for a 216MHz clock so that the I2C controller clock is calculated correctly when the I2C bus is used in coreboot. This was tested by measuring the I2C clock speed on H1 I2C bus on a sarien board in coreboot and ensuring it is ~400KHz. Change-Id: I6c3cacdad318a5ce41bc41e3ac81385c2d4f396c Signed-off-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/c/30068 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/drivers/i2c/designware/dw_i2c.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/drivers/i2c/designware') diff --git a/src/drivers/i2c/designware/dw_i2c.c b/src/drivers/i2c/designware/dw_i2c.c index d190d869e2..46df7b1a2c 100644 --- a/src/drivers/i2c/designware/dw_i2c.c +++ b/src/drivers/i2c/designware/dw_i2c.c @@ -217,6 +217,13 @@ static const struct soc_clock { .ns = 3000, }, }, + { + .clk_speed_mhz = 216, + .freq = { + .ticks = 1080, + .ns = 5000, + }, + }, }; static const struct i2c_descriptor *get_bus_descriptor(enum i2c_speed speed) -- cgit v1.2.3