i2c: designware: Add support for changing the bus rate based on DT info
authorLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 3 Oct 2014 09:33:21 +0000 (10:33 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 7 Oct 2014 11:11:02 +0000 (12:11 +0100)
commit42c681b8e6478c20dd2a529698c25906ca222784
tree6b5a7ca59ff849c89f44d0aa60b434d8a459128c
parent42d84fc1403e388fda83ce83f7897b4563d21c3f
i2c: designware: Add support for changing the bus rate based on DT info

The Designware I2C driver does not currently support changing the bus
speed even if the hardware is capable of switching to a slower frequency.
Add support for passing the clock frequency info in the device tree.
Only standard (100kHz) or fast (400kHz) speeds are supported.

Signed-off-by: Andrew Jackson <Andrew.Jackson@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/i2c/busses/i2c-designware-platdrv.c