i2c: mediatek: Add arb clock in i2c driver
authorQii Wang <qii.wang@mediatek.com>
Tue, 2 Apr 2019 12:35:57 +0000 (20:35 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Apr 2019 11:40:42 +0000 (13:40 +0200)
commitcad6dc5d2887e3d646848849e5e56863480491f4
tree7a5f4a5883026ddcf5a89e21b09ed3e24348e130
parenta3438152c66728e5dc15a3aa167b836ce7329e68
i2c: mediatek: Add arb clock in i2c driver

When two i2c controllers are internally connected to the same
GPIO pins, the arb clock is needed to ensure that the waveforms
do not interfere with each other. And we also need to enable
the interrupt to find arb lost, old i2c controllers also have
the bit.

Signed-off-by: Qii Wang <qii.wang@mediatek.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mt65xx.c