i2c: sh_mobile: Add support for r8a73a4 and sh73a0
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 6 Nov 2014 11:52:07 +0000 (12:52 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Nov 2014 08:34:56 +0000 (09:34 +0100)
commit78df445e7807b1ed741d2571280a674f3e4a57bf
tree20ffeaf149fcb2a26a61dee67873d78cb88a2eb3
parentfc3756faa71e51664e3d43b401c273723047a049
i2c: sh_mobile: Add support for r8a73a4 and sh73a0

Add support for r8a73a4 (R-Mobile APE6) and sh73a0 (SH-Mobile AG5).
On these SoCs, the operating clock runs faster that on previous SoCs,
and the internal SCL clock counter gets incremented every 2 clocks of
the operating clock, just like on R-Car Gen2.

Cfr. the "/2" in the calculation of ICCL/ICCH in section "I2C Bus
Interface (IIC)", subsection "Transfer Rate" of the datasheets.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c