]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06b060a1e576a33a9ad4b462c48c2a6173e6fea6
tree6a838ea3032bcfb468308597bab573952a88a692
parent43efbc1f7961d306e7a84158d0ace872c53aaa1f
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]