diff options
author | Lothar Waßmann <[email protected]> | 2013-07-05 18:28:00 +0200 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2013-08-16 18:09:05 +0200 |
commit | 869c6a3ededbb108b03a11a7c9d4c8a4fb607063 (patch) | |
tree | 428951cc716dc7ea6fd131314f40e1ec872ac35d /net/lapb/lapb_iface.c | |
parent | b7d12a8667d78ba340829280da8ff62d3b733664 (diff) |
i2c: mxs: fix broken timing calculation
The timing calculation is rather bogus and gives extremely wrong
results for higher frequencies (on an i.MX28). E.g. instead of 400 kHz
I measured 770 kHz.
Implement a calculation that adheres to the I2C spec and gives exact
results for I2C frequencies from 12.56 kHz to 960 kHz.
Also the bus_free and leadin parameters are programmed according to
the I2C spec for standard and fast mode.
This was tested on a Ka-Ro TX28 module with a DS1339, TSC2007, PCA9554
and SGTL5000 client.
Signed-off-by: Lothar Waßmann <[email protected]>
Acked-by: Marek Vasut <[email protected]>
[wsa: patch fixes whitespace issue, too]
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions