drivers/i2c/designware: Add 100 MHz controller base clock

There are SoCs (for instance Intel Elkhart Lake) that do use 100 MHz as
the base clock for I2C controllers. To support them properly add a
frequency setting for 100 MHz to the designware I2C controller driver.

Change-Id: I9ea11c6a41fd3758b771a416251e108cbe722769
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69304
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
This commit is contained in:
Werner Zeh 2022-11-07 07:46:49 +01:00 committed by Felix Held
parent 8ec4024ab8
commit 6b4a1ab82a
1 changed files with 7 additions and 0 deletions

View File

@ -195,6 +195,13 @@ static const struct soc_clock {
int clk_speed_mhz; int clk_speed_mhz;
struct freq freq; struct freq freq;
} soc_clocks[] = { } soc_clocks[] = {
{
.clk_speed_mhz = 100,
.freq = {
.ticks = 100,
.ns = 1000,
},
},
{ {
.clk_speed_mhz = 120, .clk_speed_mhz = 120,
.freq = { .freq = {