]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mediatek: Use scl_int_delay_ns to compensate clock-stretching
authorQii Wang <qii.wang@mediatek.com>
Sat, 17 Apr 2021 06:46:52 +0000 (14:46 +0800)
committerWolfram Sang <wsa@kernel.org>
Sat, 17 Apr 2021 20:07:25 +0000 (22:07 +0200)
commitb9a2515c232c5736443d24c6e8a737ba5984214d
treefde7672ae8da9ba123a8023618d89c7b7614798b
parentdcb8c620981e66b85c6e3a602237c967af6341db
i2c: mediatek: Use scl_int_delay_ns to compensate clock-stretching

The parameters of tSU,STA/tHD,STA/tSU,STOP maybe out of spec due
to device clock-stretch or circuit loss, we could get a suitable
scl_int_delay_ns from i2c_timings to compensate these parameters
to meet the spec via EXT_CONF register.

Signed-off-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mt65xx.c