summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2012-02-28 12:56:31 (GMT)
committerWolfram Sang <wsa@the-dreams.de>2013-03-24 09:30:54 (GMT)
commit5f9296ba21b3c395e53dd84e7ff9578f97f24295 (patch)
treeddc02adbdaa1b703b04aeee9b8d8f1ca13fa2443 /firmware
parentee5c27440cc24d62ec463cce4c000bb32c5692c7 (diff)
downloadlinux-fsl-qoriq-5f9296ba21b3c395e53dd84e7ff9578f97f24295.tar.xz
i2c: Add bus recovery infrastructure
Add i2c bus recovery infrastructure to i2c adapters as specified in the i2c protocol Rev. 03 section 3.1.16 titled "Bus clear". http://www.nxp.com/documents/user_manual/UM10204.pdf Sometimes during operation i2c bus hangs and we need to give dummy clocks to slave device to start the transfer again. Now we may have capability in the bus controller to generate these clocks or platform may have gpio pins which can be toggled to generate dummy clocks. This patch supports both. This patch also adds in generic bus recovery routines gpio or scl line based which can be used by bus controller. In addition controller driver may provide its own version of the bus recovery routine. This doesn't support multi-master recovery for now. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> [wsa: changed gpio type to int and minor reformatting] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions