summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu.c
diff options
context:
space:
mode:
authorJoshua Primero <jprimero@nvidia.com>2011-11-22 14:37:06 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-08 18:02:40 +0530
commit9490e1fe92863b57a333dcb713d900966ced1f3b (patch)
tree5c84d22e254583a6cff04ad6e084031a5f6545c8 /arch/arm/mach-tegra/board-cardhu.c
parente6a55a17395f87509338e73278924f9c7bd45f06 (diff)
arm: tegra: thermal: Thermal cleanup
Added tc1, tc2, and passive delay to thermal framework parameters. Made thermal offsets more explicit and clean. In throttling code, instead of using one 10 second 640000 entry, split this into five 2 second entries. This will give better temperature stability. bug 877359 Change-Id: Idc463ab18bdabb7a0472f4f6572195bf76067bd4 Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/68029 Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu.c')
-rw-r--r--arch/arm/mach-tegra/board-cardhu.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.c b/arch/arm/mach-tegra/board-cardhu.c
index 3fc0420c57c1..0d69eb6165b7 100644
--- a/arch/arm/mach-tegra/board-cardhu.c
+++ b/arch/arm/mach-tegra/board-cardhu.c
@@ -69,11 +69,17 @@ static struct tegra_thermal_data thermal_data = {
.temp_throttle = 85000,
.temp_shutdown = 90000,
.temp_offset = TDIODE_OFFSET, /* temps based on tdiode */
+#ifdef CONFIG_TEGRA_EDP_LIMITS
.edp_offset = TDIODE_OFFSET, /* edp based on tdiode */
-#ifndef CONFIG_TEGRA_THERMAL_SYSFS
+ .hysteresis_edp = 3000,
+#endif
+#ifdef CONFIG_TEGRA_THERMAL_SYSFS
+ .tc1 = 0,
+ .tc2 = 1,
+ .passive_delay = 2000,
+#else
.hysteresis_throttle = 1000,
#endif
- .hysteresis_edp = 3000,
};
/* !!!TODO: Change for cardhu (Taken from Ventana) */