diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-09-27 16:57:08 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-11-30 15:54:22 +0100 |
commit | bba61f50f76574ca5b84b310925be7c2e8e64275 (patch) | |
tree | 188c97103d85fcd433b4e4e89cc22c03ab814e25 /drivers/i2c/busses/i2c-davinci.c | |
parent | i2c: rk3x: populate correct variable for sda_falling_time (diff) | |
download | linux-bba61f50f76574ca5b84b310925be7c2e8e64275.tar.xz linux-bba61f50f76574ca5b84b310925be7c2e8e64275.zip |
i2c: mv64xxx: The n clockdiv factor is 0 based on sunxi SoCs
According to the datasheets the n factor for dividing the tclk is
2 to the power n on Allwinner SoCs, not 2 to the power n + 1 as it is
on other mv64xxx implementations.
I've contacted Allwinner about this and they have confirmed that the
datasheet is correct.
This commit fixes the clk-divider calculations for Allwinner SoCs
accordingly.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Diffstat (limited to 'drivers/i2c/busses/i2c-davinci.c')
0 files changed, 0 insertions, 0 deletions