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 <dlaurie@google.com>
Reviewed-on: https://review.coreboot.org/c/30068
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Duncan Laurie 2018-12-05 15:38:13 -08:00 committed by Patrick Georgi
parent 695f2feaf8
commit 4afefd648b
1 changed files with 7 additions and 0 deletions

View File

@ -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)