i2c: designware: Enable high speed mode
authorWeifeng Voon <weifeng.voon@intel.com>
Fri, 12 Aug 2016 14:02:51 +0000 (17:02 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 25 Aug 2016 22:42:07 +0000 (00:42 +0200)
commitb6e67145f14903ca430e011db3b771d8de4c3d8a
treead3a693c96e5b48f1449dec578cbf248b36dd1a9
parent548e6695d16d201f390f7554ae7d0b5bb8690166
i2c: designware: Enable high speed mode

This patch enabled high speed mode. High speed mode can be turn on by
setting the clk_freq to 3400000. High speed HCNT and LCNT are needed
as there is no default value provided.

Signed-off-by: Weifeng Voon <weifeng.voon@intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-platdrv.c