rk292x: fix vpu scale freq failed(because vepu have no round_rate)
authorchenxing <chenxing@chenxing-ubuntu-pc.(none)>
Wed, 26 Dec 2012 06:37:05 +0000 (14:37 +0800)
committerchenxing <chenxing@chenxing-ubuntu-pc.(none)>
Wed, 26 Dec 2012 06:37:12 +0000 (14:37 +0800)
arch/arm/mach-rk2928/clock_data.c

index 5cc5ac079d313cbfda84120b25007e7818b89bbe..084776e2ae77f268ad7735723eb54c511df34944 100644 (file)
@@ -1173,8 +1173,8 @@ static struct clk aclk_vepu = {
        .gate_idx       = CLK_GATE_ACLK_VEPU_SRC,
        .recalc         = clksel_recalc_div,
        .clksel_con     = CRU_CLKSELS_CON(32),
-       //.set_rate     = clkset_rate_freediv_autosel_parents,
-       .set_rate       = clksel_set_rate_freediv,
+       .set_rate       = clkset_rate_freediv_autosel_parents,
+       .round_rate     = clk_freediv_round_autosel_parents_rate,
        CRU_DIV_SET(0x1f, 0, 32),
        CRU_SRC_SET(0x1, 7),
        CRU_PARENTS_SET(clk_aclk_vepu_parents),
@@ -1185,8 +1185,8 @@ static struct clk aclk_vdpu = {
        .mode           = gate_mode,
        .gate_idx       = CLK_GATE_ACLK_VDPU_SRC,
        .recalc         = clksel_recalc_div,
-       //.set_rate     = clkset_rate_freediv_autosel_parents,
-       .set_rate       = clksel_set_rate_freediv,
+       .set_rate       = clkset_rate_freediv_autosel_parents,
+       .round_rate     = clk_freediv_round_autosel_parents_rate,
        .clksel_con     = CRU_CLKSELS_CON(32),
        CRU_DIV_SET(0x1f, 8, 32),
        CRU_SRC_SET(0x1, 15),