i2c: mxs: Set I2C timing registers for mxs-i2c
authorMarek Vasut <marex@denx.de>
Mon, 9 Jul 2012 16:22:53 +0000 (18:22 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Fri, 13 Jul 2012 08:33:42 +0000 (10:33 +0200)
commitcd4f2d4aa79ccbb2713f33f9c9f24ed21b5fc8fa
treef18425262e5ab482c4b6b12dbbf5ca8759ad33b3
parent90c16bbf57412d69fb29ca61a3942c8f433aa381
i2c: mxs: Set I2C timing registers for mxs-i2c

This patch configures the I2C bus timing registers according
to information passed via DT. Currently, 100kHz and 400kHz
modes are supported.

The TIMING2 register value is wrong in the documentation for
i.MX28! This was found and fixed by:
  Shawn Guo <shawn.guo@linaro.org>

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Documentation/devicetree/bindings/i2c/i2c-mxs.txt
arch/arm/boot/dts/imx28.dtsi
drivers/i2c/busses/i2c-mxs.c