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)
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