summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Cherry <tcherry@nvidia.com>2011-07-29 15:13:44 -0700
committerRyan Wong <ryanw@nvidia.com>2011-07-29 17:17:45 -0700
commitf1d92544928c5f6dc7c4d2b8932af11c99750eb3 (patch)
tree2eff310fbff07efb6b810f6266b60fc46342a4e9
parent62645c1c8f2bc274263c8c8a63c3479c2c4182d9 (diff)
arm: tegra: enterprise: disable core dvfs and emc scaling on A01 DO NOT MERGE
Change-Id: I4fa224c2ece54aa2f1ccb08d7a6a8b0b86ce2b63 Reviewed-on: http://git-master/r/44037 Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Karthik Ramakrishnan <karthikr@nvidia.com> Reviewed-by: Ryan Wong <ryanw@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-enterprise-memory.c8
-rw-r--r--arch/arm/mach-tegra/tegra3_dvfs.c7
2 files changed, 12 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-memory.c b/arch/arm/mach-tegra/board-enterprise-memory.c
index 3212894cb049..4919ecf4bbd7 100644
--- a/arch/arm/mach-tegra/board-enterprise-memory.c
+++ b/arch/arm/mach-tegra/board-enterprise-memory.c
@@ -21,7 +21,7 @@
#include "board-enterprise.h"
#include "tegra3_emc.h"
-
+#include "fuse.h"
static const struct tegra_emc_table enterprise_emc_tables_h5tc2g[] = {
{
@@ -623,7 +623,9 @@ static const struct tegra_emc_table enterprise_emc_tables_h5tc2g[] = {
int enterprise_emc_init(void)
{
- tegra_init_emc(enterprise_emc_tables_h5tc2g,
- ARRAY_SIZE(enterprise_emc_tables_h5tc2g));
+ if (tegra_get_revision() >= TEGRA_REVISION_A02) {
+ tegra_init_emc(enterprise_emc_tables_h5tc2g,
+ ARRAY_SIZE(enterprise_emc_tables_h5tc2g));
+ }
return 0;
}
diff --git a/arch/arm/mach-tegra/tegra3_dvfs.c b/arch/arm/mach-tegra/tegra3_dvfs.c
index 39f6c2843ee0..24cbd0300d88 100644
--- a/arch/arm/mach-tegra/tegra3_dvfs.c
+++ b/arch/arm/mach-tegra/tegra3_dvfs.c
@@ -22,6 +22,8 @@
#include <linux/kobject.h>
#include <linux/err.h>
+#include <generated/mach-types.h>
+
#include "clock.h"
#include "dvfs.h"
#include "fuse.h"
@@ -437,6 +439,11 @@ void __init tegra_soc_init_dvfs(void)
tegra_dvfs_cpu_disabled = true;
#endif
+ if (machine_is_tegra_enterprise() && tegra_get_revision() < TEGRA_REVISION_A02) {
+ printk("disabling core dvfs due to enterprise revision\n");
+ tegra_dvfs_core_disabled = true;
+ }
+
BUG_ON(VDD_SAFE_STEP > (cpu_below_core + core_below_cpu));
/*