Commit d0c322b6 authored by Ryan Walklin's avatar Ryan Walklin Committed by Chen-Yu Tsai
Browse files

clk: sunxi-ng: h616: Add sigma-delta modulation settings for audio PLL



Allwinner has previously released a H616 audio driver which also
provides sigma-delta modulation for the audio PLL clocks. This approach
is used in other Allwinner SoCs, including the H3 and A64.

The manual-provided clock values are:
PLL_AUDIO(hs) = 24 MHz*N/M1
PLL_AUDIO(4X) = 24 MHz*N/M0/M1/P
PLL_AUDIO(2X) = 24 MHz*N/M0/M1/P/2
PLL_AUDIO(1X) = 24 MHz*N/M0/M1/P/4

A fixed post-divider of 2 is used to account for a M0 divider of
2, which cannot be modelled by the existing macros and ccu_nm struct.

Add SDM to the H616 clock control unit driver.

Signed-off-by: default avatarRyan Walklin <ryan@testtoast.com>
Tested-by: default avatarMarcus Cooper <codekipper@gmail.com>
Reviewed-by: default avatarAndre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20241023075917.186835-2-ryan@testtoast.com


[wens@csie.org: Fixed whitespace errors]
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 9852d85e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment