Skip to content

Commit 7042125

Browse files
codekippermripard
authored andcommitted
clk: sunxi-ng: A31: Fix spdif clock register
As the SPDIF was rarely documented on the earlier Allwinner SoCs it was assumed that it had a similar clock register to the one described in the H3 User Manual. However this is not the case and it looks to shares the same setup as the I2S clock registers. Signed-off-by: Marcus Cooper <codekipper@gmail.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent bb021cd commit 7042125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/sunxi-ng/ccu-sun6i-a31.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ static SUNXI_CCU_MUX_WITH_GATE(daudio0_clk, "daudio0", daudio_parents,
468468
static SUNXI_CCU_MUX_WITH_GATE(daudio1_clk, "daudio1", daudio_parents,
469469
0x0b4, 16, 2, BIT(31), CLK_SET_RATE_PARENT);
470470

471-
static SUNXI_CCU_M_WITH_GATE(spdif_clk, "spdif", "pll-audio",
472-
0x0c0, 0, 4, BIT(31), CLK_SET_RATE_PARENT);
471+
static SUNXI_CCU_MUX_WITH_GATE(spdif_clk, "spdif", daudio_parents,
472+
0x0c0, 16, 2, BIT(31), CLK_SET_RATE_PARENT);
473473

474474
static SUNXI_CCU_GATE(usb_phy0_clk, "usb-phy0", "osc24M",
475475
0x0cc, BIT(8), 0);

0 commit comments

Comments
 (0)