i2c: designware: add reset interface
authorZhangfei Gao <zhangfei.gao@linaro.org>
Tue, 27 Dec 2016 14:22:40 +0000 (22:22 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 8 Mar 2017 17:15:18 +0000 (18:15 +0100)
commitab809fd81fde3d416f8656d8f814a0777fb9b65e
tree18784d3b6c72ae0f3f87a1820e2c68fa5f78ad67
parent3b0277f198ac928f323c42e180680d2f79aa980d
i2c: designware: add reset interface

Some platforms like hi3660 need do reset first to allow accessing registers

Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Ramiro Oliveira <ramiro.oliveira@synopsys.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-platdrv.c