MLK-14394 i2c: imx-lpi2c: change default bitrate
authorGao Pan <pandy.gao@nxp.com>
Wed, 8 Mar 2017 14:37:23 +0000 (22:37 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:33 +0000 (15:21 -0500)
Due to the eviation i2c clk settings, the result may less than
100KBps. As a result, some i2c slave works in wrong condition.

This patch changes i2c bitrate to 200KBps

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pick from e8001d5993b9be81a872a0d93106e71050dced24)

drivers/i2c/busses/i2c-imx-lpi2c.c

index 35e9728..a186764 100644 (file)
@@ -86,7 +86,7 @@
 #define LPI2C_RX_FIFOSIZE      4
 #define LPI2C_TX_FIFOSIZE      4
 
-#define LPI2C_DEFAULT_RATE     100000
+#define LPI2C_DEFAULT_RATE     200000
 #define STARDARD_MAX_BITRATE   400000
 #define FAST_MAX_BITRATE       1000000
 #define FAST_PLUS_MAX_BITRATE  3400000