summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/variants/yaviks
diff options
context:
space:
mode:
authorWisley Chen <wisley.chen@quanta.corp-partner.google.com>2022-10-03 15:34:20 +0600
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-10-07 21:16:30 +0000
commit11bf65caef5f786a00bc0c8913ccf6ef4dcd7932 (patch)
treef024c908b4b02f5def6e3241e470f0f8268c976f /src/mainboard/google/brya/variants/yaviks
parentf9fea868ba9ce077f102c83296ffbd32c8e9ccf8 (diff)
mb/google/nissa/var/yaviks: Config I2C frequency
Update parameters for all I2C devices. After applied this patch, the measured the I2C frequency meets spec BUG=b:249953708 TEST=FW_NAME=yaviks emerge-nissa coreboot flash and measure the all I2C devices 1. I2C0 (TPM): 980.6 Khz 2. I2C1 (TouchScreen); 392.6 Khz 3. I2C3 (Audio): 394.9 Khz 4. I2C5 (Touchpad): 391.6 Khz Signed-off-by: Wisley Chen <wisley.chen@quanta.corp-partner.google.com> Change-Id: I33c2891f17bc3c572bbfcbf30bbbdef9eb850ce7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68082 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Reka Norman <rekanorman@chromium.org>
Diffstat (limited to 'src/mainboard/google/brya/variants/yaviks')
-rw-r--r--src/mainboard/google/brya/variants/yaviks/overridetree.cb26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/variants/yaviks/overridetree.cb b/src/mainboard/google/brya/variants/yaviks/overridetree.cb
index e30cc06e7b..bfee36017e 100644
--- a/src/mainboard/google/brya/variants/yaviks/overridetree.cb
+++ b/src/mainboard/google/brya/variants/yaviks/overridetree.cb
@@ -40,16 +40,40 @@ chip soc/intel/alderlake
register "common_soc_config" = "{
.i2c[0] = {
.early_init = 1,
- .speed = I2C_SPEED_FAST,
+ .speed = I2C_SPEED_FAST_PLUS,
+ .speed_config[0] = {
+ .speed = I2C_SPEED_FAST_PLUS,
+ .scl_lcnt = 56,
+ .scl_hcnt = 30,
+ .sda_hold = 7,
+ }
},
.i2c[1] = {
.speed = I2C_SPEED_FAST,
+ .speed_config[0] = {
+ .speed = I2C_SPEED_FAST,
+ .scl_lcnt = 158,
+ .scl_hcnt = 79,
+ .sda_hold = 7,
+ }
},
.i2c[3] = {
.speed = I2C_SPEED_FAST,
+ .speed_config[0] = {
+ .speed = I2C_SPEED_FAST,
+ .scl_lcnt = 158,
+ .scl_hcnt = 79,
+ .sda_hold = 7,
+ }
},
.i2c[5] = {
.speed = I2C_SPEED_FAST,
+ .speed_config[0] = {
+ .speed = I2C_SPEED_FAST,
+ .scl_lcnt = 158,
+ .scl_hcnt = 79,
+ .sda_hold = 7,
+ }
},
}"