diff options
author | Jernej Skrabec <[email protected]> | 2018-02-14 21:08:55 +0100 |
---|---|---|
committer | Maxime Ripard <[email protected]> | 2018-02-15 14:40:19 +0100 |
commit | d897ef56faf9bdb36e931251d0b70b10ebb03a14 (patch) | |
tree | eb834dce045ce705c540d9b12a4270acb62d8191 /scripts/gdb/vmlinux-gdb.py | |
parent | 75af6fa42dc68b730e85f51034512c61e52eb0c0 (diff) |
clk: sunxi-ng: Mask nkmp factors when setting register
Currently, if one of the factors isn't present, bit 0 gets always set to
1. For example, A83T has NMP PLLs modelled as NKMP PLL without K. Since
K is not specified, it's offset, width and shift is 0. Driver assumes
that lowest value possible is 1, otherwise we would get division by 0.
That situation causes that bit 0 is always set, which may change wanted
clock rate.
Fix that by masking every factor according to it's specified width.
Factors with width set to 0 won't have any influence to final register
value.
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Jernej Skrabec <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions