]> Pileus Git - ~andy/linux/commit
i2c: nomadik: auto-calculate slave setup time
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Nov 2013 22:11:45 +0000 (23:11 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 9 Jan 2014 22:02:37 +0000 (23:02 +0100)
commit977303979d68b323470dd92c2d4f7e95dedaea2b
tree77af7891991e63c448f691822164e505ef03d89c
parent4868ca387debaf5c19061a18624956233886ab01
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>
drivers/i2c/busses/i2c-nomadik.c
include/linux/platform_data/i2c-nomadik.h