]> Gentwo Git Trees - linux/.git/commit
clk: loongson2: Add clock definitions for Loongson-2K0300 SoC
authorYao Zi <ziyao@disroot.org>
Fri, 19 Sep 2025 14:26:47 +0000 (14:26 +0000)
committerStephen Boyd <sboyd@kernel.org>
Sun, 21 Sep 2025 19:48:51 +0000 (12:48 -0700)
commit74743c53a19fb7592ca0369f087015044ee4a571
tree98219980a46213b4fe678a24fda56d800e6b7a65
parent158ddb87b13e6642dadaa16e3c4e9f5814825685
clk: loongson2: Add clock definitions for Loongson-2K0300 SoC

The clock controller of Loongson-2K0300 consists of three PLLs, requires
an 120MHz external reference clock to function, and generates clocks in
various frequencies for SoC peripherals.

Clock definitions for previous SoC generations could be reused for most
clock hardwares. There're two gates marked as critical, clk_node_gate
and clk_boot_gate, which supply the CPU cores and the system
configuration bus. Disabling them leads to a SoC hang.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-loongson2.c