Skip to content

Commit f817c13

Browse files
Dinh Nguyenbebarino
authored andcommitted
clk: socfpga: agilex: fix up s2f_user0_clk representation
Correct the s2f_user0_mux clock representation. Fixes: 80c6b7a ("clk: socfpga: agilex: add clock driver for the Agilex platform") Cc: [email protected] Signed-off-by: Kris Chaplin <[email protected]> Signed-off-by: Dinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 9d56323 commit f817c13

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/clk/socfpga/clk-agilex.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,13 @@ static const struct clk_parent_data sdmmc_mux[] = {
195195
.name = "boot_clk", },
196196
};
197197

198+
static const struct clk_parent_data s2f_user0_mux[] = {
199+
{ .fw_name = "s2f_user0_free_clk",
200+
.name = "s2f_user0_free_clk", },
201+
{ .fw_name = "boot_clk",
202+
.name = "boot_clk", },
203+
};
204+
198205
static const struct clk_parent_data s2f_user1_mux[] = {
199206
{ .fw_name = "s2f_user1_free_clk",
200207
.name = "s2f_user1_free_clk", },
@@ -319,6 +326,8 @@ static const struct stratix10_gate_clock agilex_gate_clks[] = {
319326
4, 0x98, 0, 16, 0x88, 3, 0},
320327
{ AGILEX_SDMMC_CLK, "sdmmc_clk", NULL, sdmmc_mux, ARRAY_SIZE(sdmmc_mux), 0, 0x7C,
321328
5, 0, 0, 0, 0x88, 4, 4},
329+
{ AGILEX_S2F_USER0_CLK, "s2f_user0_clk", NULL, s2f_user0_mux, ARRAY_SIZE(s2f_user0_mux), 0, 0x24,
330+
6, 0, 0, 0, 0x30, 2, 0},
322331
{ AGILEX_S2F_USER1_CLK, "s2f_user1_clk", NULL, s2f_user1_mux, ARRAY_SIZE(s2f_user1_mux), 0, 0x7C,
323332
6, 0, 0, 0, 0x88, 5, 0},
324333
{ AGILEX_PSI_REF_CLK, "psi_ref_clk", NULL, psi_mux, ARRAY_SIZE(psi_mux), 0, 0x7C,

0 commit comments

Comments
 (0)