Skip to content

Commit a6aa462

Browse files
Shubhrajyoti Dattabebarino
authored andcommitted
clk: zynq: Update the parameters to zynq_clk_register_periph_clk
In case there are only one gate or the two_gate is 0 the clk1 clock passed is not used. We are passing 0 which is arm_pll. Pass a invalid clock instead. Signed-off-by: Shubhrajyoti Datta <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent d583804 commit a6aa462

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/clk/zynq/clkc.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,14 @@ static void __init zynq_clk_setup(struct device_node *np)
355355
periph_parents, enable);
356356
}
357357

358-
zynq_clk_register_periph_clk(lqspi, 0, clk_output_name[lqspi], NULL,
359-
SLCR_LQSPI_CLK_CTRL, periph_parents, 0);
358+
zynq_clk_register_periph_clk(lqspi, clk_max, clk_output_name[lqspi], NULL,
359+
SLCR_LQSPI_CLK_CTRL, periph_parents, 0);
360360

361-
zynq_clk_register_periph_clk(smc, 0, clk_output_name[smc], NULL,
362-
SLCR_SMC_CLK_CTRL, periph_parents, 0);
361+
zynq_clk_register_periph_clk(smc, clk_max, clk_output_name[smc], NULL,
362+
SLCR_SMC_CLK_CTRL, periph_parents, 0);
363363

364-
zynq_clk_register_periph_clk(pcap, 0, clk_output_name[pcap], NULL,
365-
SLCR_PCAP_CLK_CTRL, periph_parents, 0);
364+
zynq_clk_register_periph_clk(pcap, clk_max, clk_output_name[pcap], NULL,
365+
SLCR_PCAP_CLK_CTRL, periph_parents, 0);
366366

367367
zynq_clk_register_periph_clk(sdio0, sdio1, clk_output_name[sdio0],
368368
clk_output_name[sdio1], SLCR_SDIO_CLK_CTRL,

0 commit comments

Comments
 (0)