i2c: i2c-sh_mobile: optimize ICCH/ICCL values according to I2C bus speed
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Wed, 24 Oct 2012 10:57:27 +0000 (19:57 +0900)
committerWolfram Sang <w.sang@pengutronix.de>
Fri, 16 Nov 2012 08:07:43 +0000 (09:07 +0100)
commit23a612916a51cc3772ff46c9dc34a86c9c50840e
treef1cff85dd93d7cfa457b7d22dd3d00122b3a548f
parent7b0e62920ac314eb819e68b7d2c51994b98b19ca
i2c: i2c-sh_mobile: optimize ICCH/ICCL values according to I2C bus speed

ICCH/ICCL values is supposed to be calculated/optimized to strictly meet
the timing specs required by the I2C standard. The resulting I2C bus
speed does not matter at all, if it's less than 100 or 400 kHz.

With this change, sh_mobile_i2c_icch() is virtually identical to
sh_mobile_i2c_iccl(), but they're providing good descriptions of
SH-/R-Mobile I2C hardware spec, and I'd leave them as separated.

Also fix a typo in the comment, print icch/iccl values at probe, etc.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
[wsa: squashed two patches for bisectability]

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-sh_mobile.c
This page took 0.025962 seconds and 5 git commands to generate.