Skip to content

Commit 7c2e86f

Browse files
shubhraamdbebarino
authored andcommitted
clk: clocking-wizard: Fix output clock register offset for Versal platforms
The output clock register offset used in clk_wzrd_register_output_clocks was incorrectly referencing 0x3C instead of 0x38, which caused misconfiguration of output dividers on Versal platforms. Correcting the off-by-one error ensures proper configuration of output clocks. Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent e0a94c6 commit 7c2e86f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/xilinx/clk-xlnx-clock-wizard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ static int clk_wzrd_register_output_clocks(struct device *dev, int nr_outputs)
11121112
(dev,
11131113
clkout_name, clk_name, 0,
11141114
clk_wzrd->base,
1115-
(WZRD_CLK_CFG_REG(is_versal, 3) + i * 8),
1115+
(WZRD_CLK_CFG_REG(is_versal, 2) + i * 8),
11161116
WZRD_CLKOUT_DIVIDE_SHIFT,
11171117
WZRD_CLKOUT_DIVIDE_WIDTH,
11181118
CLK_DIVIDER_ONE_BASED |

0 commit comments

Comments
 (0)