]> Gentwo Git Trees - linux/.git/commit
clk: thead: add support for enabling/disabling PLLs
authorIcenowy Zheng <uwu@icenowy.me>
Sat, 16 Aug 2025 09:11:11 +0000 (17:11 +0800)
committerDrew Fustini <fustini@kernel.org>
Mon, 18 Aug 2025 21:58:23 +0000 (14:58 -0700)
commit56a48c1833aa1ede82cc3833d73750597eccfdb0
treea579fb6d40592f63f3999a78eb3916cd9432a8a4
parentc51a37ffea3813374a8f7955abbba6da25357388
clk: thead: add support for enabling/disabling PLLs

The 2nd control word of T-Head TH1520 PLLs contains a bit to put the VCO
into reset state, which means disabling the PLL.

Some PLLs are put to disabled state by the bootloader, and the clock
driver should be able to enable them.

Add support for enabling/disabling PLLs. PLLs other than DPU ones are
set CLK_IS_CRITICAL to prevent killing the system -- they're meant to
drive CPU or system buses (even the GMAC/Video ones are driving arbitrary
buses).

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Drew Fustini <fustini@kernel.org>
Signed-off-by: Drew Fustini <fustini@kernel.org>
drivers/clk/thead/clk-th1520-ap.c