rk30:sdk: add GPU frequency limit between 133MHz to 400MHz
authorchenxing <chenxing@rock-chips.com>
Wed, 4 Jul 2012 09:23:30 +0000 (17:23 +0800)
committerchenxing <chenxing@rock-chips.com>
Wed, 4 Jul 2012 09:23:30 +0000 (17:23 +0800)
arch/arm/mach-rk30/cpufreq.c

index b352b1f9f7a51ad3d5b0fc5843016b2cc5444b0d..f7a1c87c21b7213d42e81dc8962d9bc5d76a05da 100755 (executable)
@@ -256,6 +256,9 @@ static int rk30_cpu_init(struct cpufreq_policy *policy)
                }
                clk_enable_dvfs(cpu_clk);
 
+               /* Limit gpu frequency between 133M to 400M */
+               dvfs_clk_enable_limit(gpu_clk, 133000000, 400000000);
+
                freq_wq = create_singlethread_workqueue("rk30_cpufreqd");
 #ifdef CONFIG_RK30_CPU_FREQ_LIMIT_BY_TEMP
                if (rk30_cpufreq_is_ondemand_policy(policy)) {