]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: sunxi-ng: Allow DE clock to set parent rate
authorJernej Skrabec <jernej.skrabec@siol.net>
Thu, 28 Feb 2019 20:03:27 +0000 (21:03 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 18 Mar 2019 07:07:21 +0000 (08:07 +0100)
DE2/DE3 mixers have to run at specific frequency in order to work
optimally. This wasn't actually possible for some SoCs because "de"
clock wasn't allowed to adjust parent rate.

Add CLK_SET_RATE_PARENT flag to all "de" clocks which didn't have it
yet.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
drivers/clk/sunxi-ng/ccu-sun50i-a64.c
drivers/clk/sunxi-ng/ccu-sun50i-h6.c
drivers/clk/sunxi-ng/ccu-sun8i-v3s.c

index 932836d26e2bf40e5e3d1e7ce056f9658f1b87f0..be0deee7018252dec1a56e4acdf862d0ae0f3a79 100644 (file)
@@ -531,7 +531,8 @@ static SUNXI_CCU_GATE(dram_ts_clk,  "dram-ts",      "dram",
 
 static const char * const de_parents[] = { "pll-periph0-2x", "pll-de" };
 static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents,
-                                0x104, 0, 4, 24, 3, BIT(31), 0);
+                                0x104, 0, 4, 24, 3, BIT(31),
+                                CLK_SET_RATE_PARENT);
 
 static const char * const tcon0_parents[] = { "pll-mipi", "pll-video0-2x" };
 static const u8 tcon0_table[] = { 0, 2, };
index 139e8389615c74dab720fdfd0e72a24423d7e7ad..daf78966555eb461779de3aa2cc9886ea5a50715 100644 (file)
@@ -266,7 +266,7 @@ static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents, 0x600,
                                       0, 4,    /* M */
                                       24, 1,   /* mux */
                                       BIT(31), /* gate */
-                                      0);
+                                      CLK_SET_RATE_PARENT);
 
 static SUNXI_CCU_GATE(bus_de_clk, "bus-de", "psi-ahb1-ahb2",
                      0x60c, BIT(0), 0);
index ac12f261f8caa3f76d0b8407be287506ed7ff7cc..eada0e2918591c0cbb589d79587c67651f141891 100644 (file)
@@ -325,7 +325,8 @@ static SUNXI_CCU_GATE(dram_ohci_clk,        "dram-ohci",    "dram",
 
 static const char * const de_parents[] = { "pll-video", "pll-periph0" };
 static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents,
-                                0x104, 0, 4, 24, 2, BIT(31), 0);
+                                0x104, 0, 4, 24, 2, BIT(31),
+                                CLK_SET_RATE_PARENT);
 
 static const char * const tcon_parents[] = { "pll-video" };
 static SUNXI_CCU_M_WITH_MUX_GATE(tcon_clk, "tcon", tcon_parents,