clk: vc3: Fix output clock mapping
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 24 Aug 2023 10:48:11 +0000 (11:48 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 11 Sep 2023 20:23:52 +0000 (13:23 -0700)
commit6dcf03bcac31dec528867180f96580652fc3ac5b
tree629c7cda441974b10a4424591726723c0a53867d
parent576418e3417267e93ffee09c46f56434108c4548
clk: vc3: Fix output clock mapping

According to Table 3. ("Output Source") in the 5P35023 datasheet,
the output clock mapping should be 0=REF, 1=SE1, 2=SE2, 3=SE3,
4=DIFF1, 5=DIFF2. But the code uses inverse. Fix this mapping issue.

Suggested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Closes: https://lore.kernel.org/all/CAMuHMdUHD+bEco=WYTYWsTAyRt3dTQQt4Xpaejss0Y2ZpLCMNg@mail.gmail.com/
Fixes: 6e9aff555db7 ("clk: Add support for versa3 clock driver")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230824104812.147775-4-biju.das.jz@bp.renesas.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-versaclock3.c