Lines Matching refs:newfreq
34 static struct clk *spear1340_cpu_get_possible_parent(unsigned long newfreq) in spear1340_cpu_get_possible_parent() argument
53 if (newfreq <= 300000000) in spear1340_cpu_get_possible_parent()
55 else if (newfreq > 300000000 && newfreq <= 500000000) in spear1340_cpu_get_possible_parent()
57 else if (newfreq == 600000000) in spear1340_cpu_get_possible_parent()
76 static int spear1340_set_cpu_rate(struct clk *sys_pclk, unsigned long newfreq) in spear1340_set_cpu_rate() argument
88 ret = clk_set_rate(sys_pclk, newfreq); in spear1340_set_cpu_rate()
90 pr_err("Failed to set sys clk rate to %lu\n", newfreq); in spear1340_set_cpu_rate()
106 long newfreq; in spear_cpufreq_target() local
110 newfreq = spear_cpufreq.freq_tbl[index].frequency * 1000; in spear_cpufreq_target()
120 srcclk = spear1340_cpu_get_possible_parent(newfreq); in spear_cpufreq_target()
136 newfreq = clk_round_rate(srcclk, newfreq * mult); in spear_cpufreq_target()
137 if (newfreq <= 0) { in spear_cpufreq_target()
139 return newfreq; in spear_cpufreq_target()
143 ret = spear1340_set_cpu_rate(srcclk, newfreq); in spear_cpufreq_target()
145 ret = clk_set_rate(spear_cpufreq.clk, newfreq); in spear_cpufreq_target()