i2c: designware: Allow reduce bus speed by "clock-frequency" property
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 10 Nov 2016 11:37:20 +0000 (13:37 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 18 Nov 2016 01:08:03 +0000 (02:08 +0100)
commit973652db6f1406e556613b7bb252f1a005005f04
tree70a1ab1bd7d53c59200e2ab88160e568aca37e98
parentc3ae106050b949d6c776c5434046c888a5a6298a
i2c: designware: Allow reduce bus speed by "clock-frequency" property

Allow more flexibility to bus speed selection. Now if there are I2C
slave connections defined in ACPI the speed of slowest device on the bus
will define the bus speed. However if also "clock-frequency" device
property is defined we should use the slowest of these two.

This is targeted to maker boards where developer may want to connect
slower I2C slave devices to the bus than defined in existing ACPI I2C
slave connections.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c