Skip to content

Commit 96bf326

Browse files
Dinh Nguyengregkh
authored andcommitted
clk: socfpga: agilex: fix up s2f_user0_clk representation
commit f817c13 upstream. Correct the s2f_user0_mux clock representation. Fixes: 80c6b7a ("clk: socfpga: agilex: add clock driver for the Agilex platform") Cc: stable@vger.kernel.org Signed-off-by: Kris Chaplin <kris.chaplin@intel.com> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org> Link: https://lore.kernel.org/r/20210713144621.605140-2-dinguyen@kernel.org Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7eb16be commit 96bf326

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎drivers/clk/socfpga/clk-agilex.c‎

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

196+
static const struct clk_parent_data s2f_user0_mux[] = {
197+
{ .fw_name = "s2f_user0_free_clk",
198+
.name = "s2f_user0_free_clk", },
199+
{ .fw_name = "boot_clk",
200+
.name = "boot_clk", },
201+
};
202+
196203
static const struct clk_parent_data s2f_user1_mux[] = {
197204
{ .fw_name = "s2f_user1_free_clk",
198205
.name = "s2f_user1_free_clk", },
@@ -306,6 +313,8 @@ static const struct stratix10_gate_clock agilex_gate_clks[] = {
306313
4, 0x98, 0, 16, 0x88, 3, 0},
307314
{ AGILEX_SDMMC_CLK, "sdmmc_clk", NULL, sdmmc_mux, ARRAY_SIZE(sdmmc_mux), 0, 0x7C,
308315
5, 0, 0, 0, 0x88, 4, 4},
316+
{ AGILEX_S2F_USER0_CLK, "s2f_user0_clk", NULL, s2f_user0_mux, ARRAY_SIZE(s2f_user0_mux), 0, 0x24,
317+
6, 0, 0, 0, 0x30, 2, 0},
309318
{ AGILEX_S2F_USER1_CLK, "s2f_user1_clk", NULL, s2f_user1_mux, ARRAY_SIZE(s2f_user1_mux), 0, 0x7C,
310319
6, 0, 0, 0, 0x88, 5, 0},
311320
{ AGILEX_PSI_REF_CLK, "psi_ref_clk", NULL, psi_mux, ARRAY_SIZE(psi_mux), 0, 0x7C,

0 commit comments

Comments
 (0)