summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2012-06-06 22:18:38 -0700
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-07-13 05:43:36 -0700
commitdce8537432468a214e1ce99fd2fa5a84798ee4da (patch)
tree611e201ae1e8fe27586a7463a0ada66be237cd81
parent127f5dd94b954298db3b205e6c5eeea946ff13cc (diff)
ARM: tegra: clock: Adjust Tegra3 cpu to emc ratio
On Tegra3 changed cpu rate threshold for maximum emc rate request from 750MHz to 925MHz. Adjusted cpu frequency table to provide entries close to the new threshold for all Tegra3 skus. Bug 998044 Bug 1003521 Signed-off-by: Alex Frid <afrid@nvidia.com> Change-Id: I6e6df1958db9d55ad64cf35a5e9fe6ec74b8d4ea Reviewed-on: http://git-master/r/106946 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/tegra3_clocks.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/arch/arm/mach-tegra/tegra3_clocks.c b/arch/arm/mach-tegra/tegra3_clocks.c
index 1d9d010..e109ffa 100644
--- a/arch/arm/mach-tegra/tegra3_clocks.c
+++ b/arch/arm/mach-tegra/tegra3_clocks.c
@@ -1,7 +1,7 @@
/*
* arch/arm/mach-tegra/tegra3_clocks.c
*
- * Copyright (C) 2010-2012 NVIDIA Corporation
+ * Copyright (C) 2010-2012 NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -4642,13 +4642,14 @@ static struct cpufreq_frequency_table freq_table_1p7GHz[] = {
{ 5, 620000 },
{ 6, 760000 },
{ 7, 910000 },
- { 8, 1150000 },
- { 9, 1300000 },
- {10, 1400000 },
- {11, 1500000 },
- {12, 1600000 },
- {13, 1700000 },
- {14, CPUFREQ_TABLE_END },
+ { 8, 1000000 },
+ { 9, 1150000 },
+ {10, 1300000 },
+ {11, 1400000 },
+ {12, 1500000 },
+ {13, 1600000 },
+ {14, 1700000 },
+ {15, CPUFREQ_TABLE_END },
};
static struct tegra_cpufreq_table_data cpufreq_tables[] = {
@@ -4749,10 +4750,10 @@ unsigned long tegra_emc_to_cpu_ratio(unsigned long cpu_rate)
/* Vote on memory bus frequency based on cpu frequency;
cpu rate is in kHz, emc rate is in Hz */
- if (cpu_rate >= 750000)
- return emc_max_rate; /* cpu >= 750 MHz, emc max */
+ if (cpu_rate >= 925000)
+ return emc_max_rate; /* cpu >= 925 MHz, emc max */
else if (cpu_rate >= 450000)
- return emc_max_rate/2; /* cpu >= 500 MHz, emc max/2 */
+ return emc_max_rate/2; /* cpu >= 450 MHz, emc max/2 */
else if (cpu_rate >= 250000)
return 100000000; /* cpu >= 250 MHz, emc 100 MHz */
else