i2c: sh_mobile: use new clock calculation formulas for Gen3
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 4 Feb 2019 22:00:10 +0000 (23:00 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 8 Feb 2019 21:23:27 +0000 (22:23 +0100)
commite8a27567509b2439b3d8e5937a11483fb25c0f0c
treefca694190e3a5a1ead7b453926e26e69d7f36df5
parent43116a0d9a533af24728ea7898c1d984446caa58
i2c: sh_mobile: use new clock calculation formulas for Gen3

We could finally measure the clock on an Ebisu board. The new formula
gives way better results, i.e. 100kHz instead of 106kHz and 400kHz
instead of 387kHz. Switch to these formulas for all Gen3 SoCs.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c