Skip to content

Commit b192d04

Browse files
Guoniu.zhouabelvesa
authored andcommitted
clk: imx: scu: add parallel port clock ops
Because digital pll for parallel interface is on by default, and not provide enable/disable function by scu, so add the related ops for this kind of clocks. Signed-off-by: Guoniu.zhou <[email protected]> Signed-off-by: Dong Aisheng <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Signed-off-by: Abel Vesa <[email protected]>
1 parent babfaa9 commit b192d04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/clk/imx/clk-scu.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,12 @@ static const struct clk_ops clk_scu_cpu_ops = {
425425
.unprepare = clk_scu_unprepare,
426426
};
427427

428+
static const struct clk_ops clk_scu_pi_ops = {
429+
.recalc_rate = clk_scu_recalc_rate,
430+
.round_rate = clk_scu_round_rate,
431+
.set_rate = clk_scu_set_rate,
432+
};
433+
428434
struct clk_hw *__imx_clk_scu(struct device *dev, const char *name,
429435
const char * const *parents, int num_parents,
430436
u32 rsrc_id, u8 clk_type)
@@ -445,6 +451,8 @@ struct clk_hw *__imx_clk_scu(struct device *dev, const char *name,
445451
init.ops = &clk_scu_ops;
446452
if (rsrc_id == IMX_SC_R_A35)
447453
init.ops = &clk_scu_cpu_ops;
454+
else if (rsrc_id == IMX_SC_R_PI_0_PLL)
455+
init.ops = &clk_scu_pi_ops;
448456
else
449457
init.ops = &clk_scu_ops;
450458
init.parent_names = parents;

0 commit comments

Comments
 (0)