Skip to content

Commit a43f6e8

Browse files
Anson-Huangabelvesa
authored andcommitted
clk: imx: scu: Add A72 frequency scaling support
Add A72 clock to support cpufreq on A72 cluster. Signed-off-by: Anson Huang <[email protected]> Signed-off-by: Dong Aisheng <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Signed-off-by: Abel Vesa <[email protected]>
1 parent cd8bd2f commit a43f6e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/clk/imx/clk-scu.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ static int clk_scu_atf_set_cpu_rate(struct clk_hw *hw, unsigned long rate,
275275

276276
if (clk->rsrc_id == IMX_SC_R_A35 || clk->rsrc_id == IMX_SC_R_A53)
277277
cluster_id = 0;
278+
else if (clk->rsrc_id == IMX_SC_R_A72)
279+
cluster_id = 1;
278280
else
279281
return -EINVAL;
280282

@@ -449,7 +451,7 @@ struct clk_hw *__imx_clk_scu(struct device *dev, const char *name,
449451

450452
init.name = name;
451453
init.ops = &clk_scu_ops;
452-
if (rsrc_id == IMX_SC_R_A35 || rsrc_id == IMX_SC_R_A53)
454+
if (rsrc_id == IMX_SC_R_A35 || rsrc_id == IMX_SC_R_A53 || rsrc_id == IMX_SC_R_A72)
453455
init.ops = &clk_scu_cpu_ops;
454456
else if (rsrc_id == IMX_SC_R_PI_0_PLL)
455457
init.ops = &clk_scu_pi_ops;

0 commit comments

Comments
 (0)