i2c: designware: add support of I2C standard mode
authorRomain Baeriswyl <Romain.Baeriswyl@abilis.com>
Wed, 20 Aug 2014 14:29:08 +0000 (16:29 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 29 Sep 2014 20:41:16 +0000 (22:41 +0200)
commit8e5f6b2a289c4374456fb785900b0b7445b719e6
tree65ebc1319d0c63a6d09d125930fcffa21f1f3177
parentfe82dcec644244676d55a1384c958d5f67979adb
i2c: designware: add support of I2C standard mode

Some legacy devices support ony I2C standard mode at 100kHz.
This patch allows to select the standard mode through the DTS
with the use of the existing clock-frequency parameter.

When clock-frequency parameter is not set, the fast mode is selected.
Only when the parameter is set at 100000, the standard mode is selected.

Signed-off-by: Romain Baeriswyl <romainba@abilis.com>
Reviewed-by: Christian Ruppert <christian.ruppert@abilis.com>
Acked-by: Alan Tull <atull@opensource.altera.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c