rk3188(t) : limit arm frequency below 1.4GHz and disable cpll and dpll, when -t flag is true

This commit is contained in:
Cody Xie
2013-09-16 14:43:50 +08:00
parent a833e8e9d5
commit 6d3da060db
3 changed files with 9 additions and 1 deletions

View File

@@ -37,6 +37,7 @@
#include <mach/cpu.h>
#include <mach/ddr.h>
#include <mach/dvfs.h>
#include <plat/efuse.h>
#define VERSION "2.2"
@@ -494,7 +495,9 @@ static int rk3188_cpufreq_init_cpu0(struct cpufreq_policy *policy)
}
low_battery_freq = get_freq_from_table(low_battery_freq);
clk_enable_dvfs(cpu_clk);
if(rk_tflag()){
dvfs_clk_enable_limit(cpu_clk, 0, 1416 * 1000 * 1000);
}
freq_wq = alloc_workqueue("rk3188_cpufreqd", WQ_NON_REENTRANT | WQ_MEM_RECLAIM | WQ_HIGHPRI | WQ_FREEZABLE, 1);
rk3188_cpufreq_temp_limit_init(policy);
#ifdef CPU_FREQ_DVFS_TST

View File

@@ -66,6 +66,10 @@ int rk_pll_flag(void)
{
return efuse_buf[22] & 0x3;
}
int rk_tflag(void)
{
return efuse_buf[22] & (0x1 << 3);
}
int rk_leakage_val(void)
{

View File

@@ -19,6 +19,7 @@
/* Interfaces to get efuse informations */
void rk_efuse_init(void);
int rk_pll_flag(void);
int rk_tflag(void);
int rk_leakage_val(void);
int rk3028_version_val(void);