diff options
author | Chen-Yu Tsai <wens@csie.org> | 2017-10-12 16:36:57 +0800 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-10-13 09:26:56 +0200 |
commit | d51fe3ba9773c8b6fc79f82bbe75d64baf604292 (patch) | |
tree | 7e26f5074ea5e589e2490cdb2f0443901f3ed341 /drivers/clk/sunxi-ng/ccu_nm.c | |
parent | 7c4f63ec94a1a45dd90dd3bf4da8de24a0a5a9c0 (diff) |
clk: sunxi-ng: sun5i: Fix bit offset of audio PLL post-divider
The post-divider for the audio PLL is in bits [29:26], as specified
in the user manual, not [19:16] as currently programmed in the code.
The post-divider has a default register value of 2, i.e. a divider
of 3. This means the clock rate fed to the audio codec would be off.
This was discovered when porting sigma-delta modulation for the PLL
to sun5i, which needs the post-divider to be 1.
Fix the bit offset, so we do actually force the post-divider to a
certain value.
Fixes: 5e73761786d6 ("clk: sunxi-ng: Add sun5i CCU driver")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu_nm.c')
0 files changed, 0 insertions, 0 deletions