Skip to content

Commit e8ab346

Browse files
paulkocialkowskiwens
authored andcommitted
clk: sunxi-ng: v3s: Fix de clock definition
The de clock is marked with CLK_SET_RATE_PARENT, which is really not necessary (as confirmed from experimentation) and significantly restricts flexibility for other clocks using the same parent. In addition the source selection (parent) field is marked as using 2 bits, when it the documentation reports that it uses 3. Fix both issues in the de clock definition. Fixes: d0f11d1 ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Paul Kocialkowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent c17b1b6 commit e8ab346

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clk/sunxi-ng/ccu-sun8i-v3s.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,7 @@ static SUNXI_CCU_GATE(dram_ohci_clk, "dram-ohci", "dram",
347347

348348
static const char * const de_parents[] = { "pll-video", "pll-periph0" };
349349
static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents,
350-
0x104, 0, 4, 24, 2, BIT(31),
351-
CLK_SET_RATE_PARENT);
350+
0x104, 0, 4, 24, 3, BIT(31), 0);
352351

353352
static const char * const tcon_parents[] = { "pll-video" };
354353
static SUNXI_CCU_M_WITH_MUX_GATE(tcon_clk, "tcon", tcon_parents,

0 commit comments

Comments
 (0)