mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
rk3188(t) : limit arm frequency below 1.4GHz and disable cpll and dpll, when -t flag is true
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user