rk2928: cpufreq: set reboot freq from 600MHz to 816MHz, make sure vdd_arm 1.2v at...
author黄涛 <huangtao@rock-chips.com>
Wed, 17 Oct 2012 09:46:55 +0000 (17:46 +0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 17 Oct 2012 09:47:32 +0000 (17:47 +0800)
arch/arm/mach-rk2928/cpufreq.c

index df0743f0ae3282daf614971d2ad2aa52a99be889..b9172a2bd6d23c5752fca9fce54aa5679eb11c51 100644 (file)
@@ -58,6 +58,7 @@ static unsigned int max_freq = -1;
 /* With 0x00(NOCHANGE), it depends on the previous "further" status */
 static int no_cpufreq_access;
 static unsigned int suspend_freq = 600 * 1000;
+static unsigned int reboot_freq = 816 * 1000;
 
 static struct workqueue_struct *freq_wq;
 static struct clk *cpu_clk;
@@ -686,7 +687,7 @@ static int rk30_cpufreq_reboot_notifier_event(struct notifier_block *this,
        struct cpufreq_policy *policy = cpufreq_cpu_get(0);
 
        if (policy) {
-               cpufreq_driver_target(policy, suspend_freq, DISABLE_FURTHER_CPUFREQ | CPUFREQ_RELATION_H);
+               cpufreq_driver_target(policy, reboot_freq, DISABLE_FURTHER_CPUFREQ | CPUFREQ_RELATION_L);
                cpufreq_cpu_put(policy);
        }