Skip to content

Commit b1a1ad4

Browse files
jernejskmripard
authored andcommitted
clk: sunxi-ng: h3: h5: Allow some clocks to set parent rate
Some units have to be able to set it's own clock precisely to work correctly. Allow them to do so by adding CLK_SET_RATE_PARENT flag. Add this flag to DE, TCON and HDMI clocks. Signed-off-by: Jernej Skrabec <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
1 parent 4fd8ae9 commit b1a1ad4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,13 @@ static SUNXI_CCU_GATE(dram_ts_clk, "dram-ts", "dram",
452452

453453
static const char * const de_parents[] = { "pll-periph0-2x", "pll-de" };
454454
static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents,
455-
0x104, 0, 4, 24, 3, BIT(31), 0);
455+
0x104, 0, 4, 24, 3, BIT(31),
456+
CLK_SET_RATE_PARENT);
456457

457458
static const char * const tcon_parents[] = { "pll-video" };
458459
static SUNXI_CCU_M_WITH_MUX_GATE(tcon_clk, "tcon", tcon_parents,
459-
0x118, 0, 4, 24, 3, BIT(31), 0);
460+
0x118, 0, 4, 24, 3, BIT(31),
461+
CLK_SET_RATE_PARENT);
460462

461463
static const char * const tve_parents[] = { "pll-de", "pll-periph1" };
462464
static SUNXI_CCU_M_WITH_MUX_GATE(tve_clk, "tve", tve_parents,
@@ -487,7 +489,8 @@ static SUNXI_CCU_GATE(avs_clk, "avs", "osc24M",
487489

488490
static const char * const hdmi_parents[] = { "pll-video" };
489491
static SUNXI_CCU_M_WITH_MUX_GATE(hdmi_clk, "hdmi", hdmi_parents,
490-
0x150, 0, 4, 24, 2, BIT(31), 0);
492+
0x150, 0, 4, 24, 2, BIT(31),
493+
CLK_SET_RATE_PARENT);
491494

492495
static SUNXI_CCU_GATE(hdmi_ddc_clk, "hdmi-ddc", "osc24M",
493496
0x154, BIT(31), 0);

0 commit comments

Comments
 (0)