i2c: designware: Enable fast mode plus
authorWeifeng Voon <weifeng.voon@intel.com>
Fri, 12 Aug 2016 14:02:49 +0000 (17:02 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 25 Aug 2016 22:42:05 +0000 (00:42 +0200)
commitd608c3d9ac818fc0addc884144c7550e03b0fc6f
treeb560469cebb07a4749afbed85c071a00c7203e7b
parenta92ec1746f10e339220bf186c4f6cce531b8a7ee
i2c: designware: Enable fast mode plus

This patch enabled fast mode plus. The fast mode plus and fast speed
share the same HCNT and LCNT register. So, the fast mode plus will only
run when the HCNT and LCNT value is provided. Else, it will run at fast
speed as default.

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-platdrv.c