]> Gentwo Git Trees - linux/.git/commit
clk: loongson2: Avoid hardcoding firmware name of the reference clock
authorYao Zi <ziyao@disroot.org>
Fri, 19 Sep 2025 14:26:46 +0000 (14:26 +0000)
committerStephen Boyd <sboyd@kernel.org>
Sun, 21 Sep 2025 19:48:49 +0000 (12:48 -0700)
commit158ddb87b13e6642dadaa16e3c4e9f5814825685
tree401279f78059640409a490536ee60796f1bb7a4e
parent1ba5395c6ad0f40cd94792f737b2d19d6ec97e3c
clk: loongson2: Avoid hardcoding firmware name of the reference clock

Loongson-2K0300 requires a reference clock with a frequency different
from previous SoCs (120MHz v.s. 100MHz), thus hardcoding the firmware
name of the reference clock as ref_100m isn't a good idea.

This patch retrives the clock name of the reference clock dynamically
during probe, avoiding the hardcoded pdata structure and preparing for
support of future SoCs.

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