Skip to content

Commit 6f3bcf5

Browse files
Dinh Nguyenbebarino
authored andcommitted
clk: socfpga: agilex: add nand_x_clk and nand_ecc_clk
And the nand_x_clk and nand_ecc_clk. Make the nand_x_clk be the main clock that is feeding the NAND IP and correct it's parent to be the l4_mp_clk. Signed-off-by: Dinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent c2710fd commit 6f3bcf5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/clk/socfpga/clk-agilex.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,12 @@ static const struct stratix10_gate_clock agilex_gate_clks[] = {
294294
8, 0, 0, 0, 0, 0, 0},
295295
{ AGILEX_SPI_M_CLK, "spi_m_clk", "l4_mp_clk", NULL, 1, 0, 0x7C,
296296
9, 0, 0, 0, 0, 0, 0},
297-
{ AGILEX_NAND_CLK, "nand_clk", "l4_main_clk", NULL, 1, 0, 0x7C,
297+
{ AGILEX_NAND_X_CLK, "nand_x_clk", "l4_mp_clk", NULL, 1, 0, 0x7C,
298298
10, 0, 0, 0, 0, 0, 0},
299+
{ AGILEX_NAND_CLK, "nand_clk", "nand_x_clk", NULL, 1, 0, 0x7C,
300+
10, 0, 0, 0, 0, 0, 4},
301+
{ AGILEX_NAND_ECC_CLK, "nand_ecc_clk", "nand_x_clk", NULL, 1, 0, 0x7C,
302+
10, 0, 0, 0, 0, 0, 4},
299303
};
300304

301305
static int agilex_clk_register_c_perip(const struct stratix10_perip_c_clock *clks,

0 commit comments

Comments
 (0)