From cc7634fd697432ea983ebd1bcf08202a0e8099a8 Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Mon, 7 Nov 2022 15:21:40 +0100 Subject: mb/siemens/mc_ehl2: Provide I2C timing parameter for SSDT Provide timing parameter for SSDT generation to achieve the requested 100 kHz speed with a high accuracy. Test: Measure I2C bus clock, high and low times during I2C access from Linux and confirm they match the specification. Change-Id: Ifb6019421b612133b8f25c076519bc0e7200dad8 Signed-off-by: Werner Zeh Reviewed-on: https://review.coreboot.org/c/coreboot/+/69307 Tested-by: build bot (Jenkins) Reviewed-by: Mario Scheithauer Reviewed-by: Eric Lai --- src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mainboard/siemens/mc_ehl') diff --git a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb index d5d12777ec..3b54f24896 100644 --- a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb +++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb @@ -111,9 +111,21 @@ chip soc/intel/elkhartlake register "common_soc_config" = "{ .i2c[1] = { .speed = I2C_SPEED_STANDARD, + .speed_config[0] = { + .speed = I2C_SPEED_STANDARD, + .scl_hcnt = 0x1e1, + .scl_lcnt = 0x1f4, + .sda_hold = 0x64 + }, }, .i2c[2] = { .speed = I2C_SPEED_STANDARD, + .speed_config[0] = { + .speed = I2C_SPEED_STANDARD, + .scl_hcnt = 0x1df, + .scl_lcnt = 0x1f4, + .sda_hold = 0x64 + }, }, }" -- cgit v1.2.3