Skip to content

Commit cd8bd2f

Browse files
Anson-Huangabelvesa
authored andcommitted
clk: imx: scu: Add A53 frequency scaling support
Add i.MX8QM cpufreq support for A53 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 a61cea8 commit cd8bd2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/imx/clk-scu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static int clk_scu_atf_set_cpu_rate(struct clk_hw *hw, unsigned long rate,
273273
struct arm_smccc_res res;
274274
unsigned long cluster_id;
275275

276-
if (clk->rsrc_id == IMX_SC_R_A35)
276+
if (clk->rsrc_id == IMX_SC_R_A35 || clk->rsrc_id == IMX_SC_R_A53)
277277
cluster_id = 0;
278278
else
279279
return -EINVAL;
@@ -449,7 +449,7 @@ struct clk_hw *__imx_clk_scu(struct device *dev, const char *name,
449449

450450
init.name = name;
451451
init.ops = &clk_scu_ops;
452-
if (rsrc_id == IMX_SC_R_A35)
452+
if (rsrc_id == IMX_SC_R_A35 || rsrc_id == IMX_SC_R_A53)
453453
init.ops = &clk_scu_cpu_ops;
454454
else if (rsrc_id == IMX_SC_R_PI_0_PLL)
455455
init.ops = &clk_scu_pi_ops;

0 commit comments

Comments
 (0)