]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
clk: sunxi-ng: h6: Fix CEC clock
authorAndre Przywara <andre.przywara@arm.com>
Wed, 6 Jan 2021 14:32:46 +0000 (14:32 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:29 +0000 (18:31 +0200)
commit5994d728dfd98719a46bf3b470b50c6b4bc3d534
tree9a5e12761568a4d8832e6c6b50cc0eef09118c55
parent3955387ada4863befe25c2dc19e30f4396d693c7
clk: sunxi-ng: h6: Fix CEC clock

BugLink: https://bugs.launchpad.net/bugs/1918974
[ Upstream commit 756650820abd4770c4200763505b634a3c04e05e ]

The CEC clock on the H6 SoC is a bit special, since it uses a fixed
pre-dividier for one source clock (the PLL), but conveys the other clock
(32K OSC) directly.
We are using a fixed predivider array for that, but fail to use the right
flag to actually activate that.

Fixes: 524353ea480b ("clk: sunxi-ng: add support for the Allwinner H6 CCU")
Reported-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210106143246.11255-1-andre.przywara@arm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/clk/sunxi-ng/ccu-sun50i-h6.c