diff options
author | addy ke <addy.ke@rock-chips.com> | 2014-09-08 11:38:25 +0800 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-09-20 18:35:10 +0200 |
commit | b4a7bd7a386dc6b0bb49cb47614e06e8295d495a (patch) | |
tree | 728adfdae85210311683faee0b888e6137ffc71b /fs/bad_inode.c | |
parent | a4780d039ca5c3ef318db084f1bfc6ebed6876c8 (diff) | |
download | op-kernel-dev-b4a7bd7a386dc6b0bb49cb47614e06e8295d495a.zip op-kernel-dev-b4a7bd7a386dc6b0bb49cb47614e06e8295d495a.tar.gz |
i2c: rk3x: fix divisor calculation for SCL frequency
I2C_CLKDIV register descripted in the previous version of
RK3x chip manual is incorrect. Plus 1 is required.
The correct formula:
- T(SCL_HIGH) = T(PCLK) * (CLKDIVH + 1) * 8
- T(SCL_LOW) = T(PCLK) * (CLKDIVL + 1) * 8
- (SCL Divsor) = 8 * ((CLKDIVL + 1) + (CLKDIVH + 1))
- SCL = PCLK / (CLK Divsor)
It will be updated to the latest version of chip manual.
Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Diffstat (limited to 'fs/bad_inode.c')
0 files changed, 0 insertions, 0 deletions