]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/clk/sunxi-ng/ccu_nm.c
clk: sunxi-ng: Support fixed post-dividers on NM style clocks
authorChen-Yu Tsai <wens@csie.org>
Fri, 8 Dec 2017 08:35:10 +0000 (16:35 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 8 Dec 2017 09:08:07 +0000 (10:08 +0100)
commit7d333ef1cc1b8c8951f3a2c41f6406e2295d8be9
treefe53d1a1e2a6ba5b08691018ee13b293825350a6
parent83fe3be4d1974f5f50c5e2039a1609f4960e8579
clk: sunxi-ng: Support fixed post-dividers on NM style clocks

On the A83T, the audio PLL should have its div1 set to 0, or /1, and
div2 set to 1, or /2. This setting is the default, and is required
to match the sigma-delta modulation parameters from the BSP kernel.

To do this, we first add fixed post-divider to the NM style clocks,
which is the type of clock the audio PLL clock is modeled into.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi-ng/ccu_nm.c
drivers/clk/sunxi-ng/ccu_nm.h