aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2022-11-07 07:46:49 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-11-09 14:18:56 +0000
commit6b4a1ab82a49c9288f7964b9c1836729dcc340a6 (patch)
tree02f1b28c43df5827e6cbabf005c2d8ab430c72cb /src
parent8ec4024ab88f03bcc2c321f4aadb97320c38ad63 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/i2c/designware/dw_i2c.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/i2c/designware/dw_i2c.c b/src/drivers/i2c/designware/dw_i2c.c
index ecd9e88698..1e3163a736 100644
--- a/src/drivers/i2c/designware/dw_i2c.c
+++ b/src/drivers/i2c/designware/dw_i2c.c
@@ -196,6 +196,13 @@ static const struct soc_clock {
struct freq freq;
} soc_clocks[] = {
{
+ .clk_speed_mhz = 100,
+ .freq = {
+ .ticks = 100,
+ .ns = 1000,
+ },
+ },
+ {
.clk_speed_mhz = 120,
.freq = {
.ticks = 120,