clk: sunxi-ng: a33: Set CLK_SET_RATE_PARENT for the GPU
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 24 Jan 2017 09:41:19 +0000 (10:41 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 27 Jan 2017 10:05:57 +0000 (11:05 +0100)
In order to achieve all the rates asked by the GPU, we might need to change
the parent frequency.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu-sun8i-a33.c

index 0d513d2..a7b3c08 100644 (file)
@@ -468,7 +468,7 @@ static SUNXI_CCU_M_WITH_MUX_TABLE_GATE(drc_clk, "drc",
                                       0x180, 0, 4, 24, 3, BIT(31), 0);
 
 static SUNXI_CCU_M_WITH_GATE(gpu_clk, "gpu", "pll-gpu",
-                            0x1a0, 0, 3, BIT(31), 0);
+                            0x1a0, 0, 3, BIT(31), CLK_SET_RATE_PARENT);
 
 static const char * const ats_parents[] = { "osc24M", "pll-periph" };
 static SUNXI_CCU_M_WITH_MUX_GATE(ats_clk, "ats", ats_parents,