i2c: designware: add support of platform data to set I2C mode
authorTan, Raymond <raymond.tan@intel.com>
Wed, 3 Sep 2014 02:41:38 +0000 (10:41 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 29 Sep 2014 20:41:17 +0000 (22:41 +0200)
commit4bcfda09936da647b0a3b49d5dcb3c6c6ebb0395
tree6a838ea3032bcfb468308597bab573952a88a692
parent8e5f6b2a289c4374456fb785900b0b7445b719e6
i2c: designware: add support of platform data to set I2C mode

Use the platform data to set the clk_freq when there is no DT configuration
available. The clk_freq in turn will determine the I2C speed mode.

In Quark, there is currently no other configuration mechanism other than
board files.

Signed-off-by: Raymond Tan <raymond.tan@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Hock Leong Kweh <hock.leong.kweh@intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c
include/linux/platform_data/i2c-designware.h [new file with mode: 0644]