Skip to content

Commit 6ec1c73

Browse files
szemzoajernejsk
authored andcommitted
clk: sunxi-ng: d1: Mark cpux clock as critical
Some SoCs in the D1 family feature ARM CPUs instead of a RISC-V CPU. In that case, the CPUs are driven from the 'cpux' clock, so it needs to be marked as critical, since there is no consumer when DVFS is disabled. This matches the drivers for other SoCs, and the "riscv" clock in this driver. Signed-off-by: András Szemző <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Reviewed-by: Andre Przywara <[email protected]> Signed-off-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jernej Skrabec <[email protected]>
1 parent f1404c7 commit 6ec1c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/sunxi-ng/ccu-sun20i-d1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static const struct clk_parent_data cpux_parents[] = {
240240
{ .hw = &pll_periph0_800M_clk.common.hw },
241241
};
242242
static SUNXI_CCU_MUX_DATA(cpux_clk, "cpux", cpux_parents,
243-
0x500, 24, 3, CLK_SET_RATE_PARENT);
243+
0x500, 24, 3, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL);
244244

245245
static const struct clk_hw *cpux_hws[] = { &cpux_clk.common.hw };
246246
static SUNXI_CCU_M_HWS(cpux_axi_clk, "cpux-axi",

0 commit comments

Comments
 (0)