Skip to content

Commit 14bac3f

Browse files
GTLin08MaureenHelm
authored andcommitted
ITE: drivers/i2c: adjust timing registers to pass SI test
Timing registers of I2C 0/1/2 can be adjusted to pass SI test. We can control the tSU;STA and tHD;DAT simultaneously by changing the value of the register IT83XX_SMB_4P7USL, and we can control the tSU;DAT by changing the value of the register IT83XX_SMB_250NS as well. Signed-off-by: Tim Lin <[email protected]>
1 parent f2c4266 commit 14bac3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/i2c_ite_it8xxx2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ static void i2c_standard_port_timing_regs_400khz(uint8_t port)
187187
/* Port clock frequency depends on setting of timing registers. */
188188
IT8XXX2_SMB_SCLKTS(port) = 0;
189189
/* Suggested setting of timing registers of 400kHz. */
190-
IT8XXX2_SMB_4P7USL = 0x6;
190+
IT8XXX2_SMB_4P7USL = 0x3;
191191
IT8XXX2_SMB_4P0USL = 0;
192192
IT8XXX2_SMB_300NS = 0x1;
193-
IT8XXX2_SMB_250NS = 0x2;
193+
IT8XXX2_SMB_250NS = 0x5;
194194
IT8XXX2_SMB_45P3USL = 0x6a;
195195
IT8XXX2_SMB_45P3USH = 0x1;
196196
IT8XXX2_SMB_4P7A4P0H = 0;

0 commit comments

Comments
 (0)