commit | 977303979d68b323470dd92c2d4f7e95dedaea2b | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Thu Nov 28 23:11:45 2013 +0100 |
committer | Wolfram Sang <wsa@the-dreams.de> | Thu Jan 09 23:02:37 2014 +0100 |
tree | 77af7891991e63c448f691822164e505ef03d89c | |
parent | 4868ca387debaf5c19061a18624956233886ab01 [diff] |
i2c: nomadik: auto-calculate slave setup time The Nomadik I2C controller needs to have the slave set-up time configured based off the clock used to drive the I2C bus block. Currently this is done with static assignments assuming that the block is clocked 48MHz which is pretty likely to be bug-prone. Calculate the SLSU from the equation given in the datasheet instead. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>