From 633556b7c506276094c66d8e0c33c2eb0c994ae5 Mon Sep 17 00:00:00 2001 From: chenxing Date: Wed, 26 Dec 2012 14:37:05 +0800 Subject: [PATCH] rk292x: fix vpu scale freq failed(because vepu have no round_rate) --- arch/arm/mach-rk2928/clock_data.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rk2928/clock_data.c b/arch/arm/mach-rk2928/clock_data.c index 5cc5ac079d31..084776e2ae77 100644 --- a/arch/arm/mach-rk2928/clock_data.c +++ b/arch/arm/mach-rk2928/clock_data.c @@ -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), -- 2.34.1