Lines Matching +full:down +full:- +full:scaling
2 * CPU frequency scaling for OMAP using OPP information
7 * Based on cpu-sa1110.c, Copyright (C) 2001 Russell King
9 * Copyright (C) 2007-2011 Texas Instruments, Inc.
10 * - OMAP3/4 support by Rajendra Nayak, Santosh Shilimkar
52 old_freq = policy->cur; in omap_target()
56 ret = clk_round_rate(policy->clk, freq); in omap_target()
70 return -EINVAL; in omap_target()
78 dev_dbg(mpu_dev, "cpufreq-omap: %u MHz, %ld mV --> %u MHz, %ld mV\n", in omap_target()
79 old_freq / 1000, volt_old ? volt_old / 1000 : -1, in omap_target()
80 new_freq / 1000, volt ? volt / 1000 : -1); in omap_target()
82 /* scaling up? scale voltage before frequency */ in omap_target()
84 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target()
92 ret = clk_set_rate(policy->clk, new_freq * 1000); in omap_target()
94 /* scaling down? scale voltage after frequency */ in omap_target()
96 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target()
98 dev_warn(mpu_dev, "%s: unable to scale voltage down.\n", in omap_target()
100 clk_set_rate(policy->clk, old_freq * 1000); in omap_target()
118 policy->clk = clk_get(NULL, "cpufreq_ck"); in omap_cpu_init()
119 if (IS_ERR(policy->clk)) in omap_cpu_init()
120 return PTR_ERR(policy->clk); in omap_cpu_init()
127 __func__, policy->cpu, result); in omap_cpu_init()
141 clk_put(policy->clk); in omap_cpu_init()
148 clk_put(policy->clk); in omap_cpu_exit()
168 return -EINVAL; in omap_cpufreq_probe()
198 .name = "omap-cpufreq",