mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
clk: sunxi-ng: h3: Fix audio clock divider offset
The code had a typo and got the wrong offset for the hardcoded divider, fix that. Signed-off-by: Maxime Ripard <[email protected]> Reported-by: Jean-Francois Moine <[email protected]> Reported-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Michael Turquette <[email protected]> Link: lkml.kernel.org/r/[email protected]
This commit is contained in:
parent
0577e4853b
commit
0bd8fa2608
1 changed files with 2 additions and 2 deletions
|
|
@ -817,8 +817,8 @@ static void __init sun8i_h3_ccu_setup(struct device_node *node)
|
|||
|
||||
/* Force the PLL-Audio-1x divider to 4 */
|
||||
val = readl(reg + SUN8I_H3_PLL_AUDIO_REG);
|
||||
val &= ~GENMASK(4, 0);
|
||||
writel(val | 3, reg + SUN8I_H3_PLL_AUDIO_REG);
|
||||
val &= ~GENMASK(19, 16);
|
||||
writel(val | (3 << 16), reg + SUN8I_H3_PLL_AUDIO_REG);
|
||||
|
||||
sunxi_ccu_probe(node, reg, &sun8i_h3_ccu_desc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue