return cpufreq_frequency_table_verify(policy, freq_table);
}
-
-uint32_t ddr_set_rate(uint32_t nMHz);
-
-int ddr_scale_rate_for_dvfs(struct clk *clk, unsigned long rate, dvfs_set_rate_callback set_rate)
+static int ddr_scale_rate_for_dvfs(struct clk *clk, unsigned long rate, dvfs_set_rate_callback set_rate)
{
#if defined (CONFIG_DDR_FREQ)
ddr_set_rate(rate/(1000*1000));
#endif
return 0;
}
+
static int rk30_cpu_init(struct cpufreq_policy *policy)
{
if (policy->cpu == 0) {
return cpufreq_frequency_table_verify(policy, freq_table);
}
-uint32_t ddr_set_rate(uint32_t nMHz);
-
-int ddr_scale_rate_for_dvfs(struct clk *clk, unsigned long rate, dvfs_set_rate_callback set_rate)
+static int ddr_scale_rate_for_dvfs(struct clk *clk, unsigned long rate, dvfs_set_rate_callback set_rate)
{
#if defined (CONFIG_DDR_FREQ)
ddr_set_rate(rate/(1000*1000));
int ddr_init(uint32_t dram_type, uint32_t freq);
void ddr_set_auto_self_refresh(bool en);
uint32_t __sramlocalfunc ddr_set_pll(uint32_t nMHz, uint32_t set);
-
+uint32_t ddr_set_rate(uint32_t nMHz);
#endif