]> Gentwo Git Trees - linux/.git/commit
clk: loongson2: Allow specifying clock flags for gate clock
authorYao Zi <ziyao@disroot.org>
Fri, 19 Sep 2025 14:26:43 +0000 (14:26 +0000)
committerStephen Boyd <sboyd@kernel.org>
Sun, 21 Sep 2025 19:48:45 +0000 (12:48 -0700)
commit499f81848ef3bdca53122e0c3758381f7cd40934
tree3c73952bb0dc5c134203991bf18275f701f9caac
parent793e6b74806eea39da26f2fb7e4b640608d9598d
clk: loongson2: Allow specifying clock flags for gate clock

Some gate clocks need to be supplied with flags, e.g., it may be
required to specify CLK_IS_CRTICAL for CPU clocks.

Add a field to loongson2_clk_board_info for representing clock flags,
and specify it when registering gate clocks. A new helper macro,
CLK_GATE_FLAGS, is added to simplify definitions.

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