commit | bb988a36d3a88f2756f3f699594fad67dcd14b2b | [log] [tgz] |
---|---|---|
author | Elaine Zhang <zhangqing@rock-chips.com> | Thu Oct 12 18:18:28 2023 +0800 |
committer | Kever Yang <kever.yang@rock-chips.com> | Mon Oct 23 18:21:55 2023 +0800 |
tree | d8bdec01f2ec039cd8ae955576fdcc2d54919707 | |
parent | 28920744dca10f88bb28d0ecb7bdb925229026ba [diff] |
clk: rockchip: rk3588: fix up the frac pll calculation rk3588 frac pll: FFVCO = ((m + k / 65536) * FFIN) / p FFOUT = ((m + k / 65536) * FFIN) / (p * 2s) k is the original code, but the K[15:0] is complement code (6'b1000_0000_0000_0000 <= K[15:0] <= 16'b0111_1111_1111_1111), need to be converted. Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>