From: chenxing Date: Wed, 13 Mar 2013 07:23:12 +0000 (+0800) Subject: rk3066: make sure gpll config(nr = 1, nf = 25, no = 2) when use VMAC X-Git-Tag: firefly_0821_release~7420 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=267fd7727ecaa318ee6b4027404676c39bbacfcb;p=firefly-linux-kernel-4.4.55.git rk3066: make sure gpll config(nr = 1, nf = 25, no = 2) when use VMAC --- diff --git a/arch/arm/mach-rk30/clock_data.c b/arch/arm/mach-rk30/clock_data.c index b36760c47245..0b5a39b529db 100644 --- a/arch/arm/mach-rk30/clock_data.c +++ b/arch/arm/mach-rk30/clock_data.c @@ -3334,6 +3334,13 @@ static void __init rk30_clock_common_init(unsigned long gpll_rate,unsigned long clk_set_rate_nolock(&clk_cpu, 816*MHZ);//816 //general +#ifdef CONFIG_RK29_VMAC + /* because loader gpll_rate = 300M, but config(nr, nf, no) is not fit for VMAC, + * board with VMAC need gpll 300, so it will do nothing when gpll init, + * DO below to make sure gpll's config use (nr = 1, nf = 25, no = 2) + */ + clk_set_rate_nolock(&general_pll_clk, 297 * MHZ); +#endif clk_set_rate_nolock(&general_pll_clk, gpll_rate); //code pll clk_set_rate_nolock(&codec_pll_clk, cpll_rate);