diff options
author | Alex Frid <afrid@nvidia.com> | 2011-04-22 19:41:41 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:34 -0800 |
commit | b6cc102522fececf5987c4b38ebc45c56ccd15b3 (patch) | |
tree | e52dbf9a3e0068d87b41db98c058e70a53d40407 /arch/arm/mach-tegra/clock.c | |
parent | 6a1aa24e805fabf26efa11b2af0f0183ab1aeda4 (diff) |
ARM: tegra: clock: Clip Tegra3 CPU mode rate limits
Made sure Tegra3 LP CPU mode maximum rate, and G CPU mode minimum rate
are clipped to the entries in cpufreq scaling table.
Original-Change-Id: I4c82b65be3a8680edbb501041a7158d1a7fbbd07
Reviewed-on: http://git-master/r/29703
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R99b548e992c80e4850e6d7f9443db8f7d7134956
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r-- | arch/arm/mach-tegra/clock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c index 2fe6df739fd6..cc83511ce446 100644 --- a/arch/arm/mach-tegra/clock.c +++ b/arch/arm/mach-tegra/clock.c @@ -137,6 +137,11 @@ unsigned long clk_get_max_rate(struct clk *c) return c->max_rate; } +unsigned long clk_get_min_rate(struct clk *c) +{ + return c->min_rate; +} + /* Must be called with clk_lock(c) held */ unsigned long clk_get_rate_locked(struct clk *c) { |