MLK-20773 i2c-imx: add a limit of maximum transfer speed for imx7d
authorClark Wang <xiaoning.wang@nxp.com>
Fri, 18 Jan 2019 04:00:16 +0000 (12:00 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit5d355407812025e5157f82b7763580e7295a40fd
tree17e9e12f4bb8398a7593e2cf8d2554058025bfbe
parent8ffdfe3af21dc423f0cda33bdda07aac74e870a2
MLK-20773 i2c-imx: add a limit of maximum transfer speed for imx7d

According the e7805 in Errata, the SCK low level period should be less
than 1.3us.

The other series platform use this same IP can match the errata, and
ensure the low level period longer than 1.3us when the speed set to
400KHz. However, only at imx7d platform, the low level period is less
than 1.3us in the same situation.

Therefore, limit the maximum transfer speed to 384KHz when probe at
imx7d platform.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
(cherry picked from commit 19f553846e872b5c379b37ed029132b79566cab0)
drivers/i2c/busses/i2c-imx.c