arm: tegra: thermal: Thermal cleanup
Joshua Primero [Tue, 22 Nov 2011 22:37:06 +0000 (14:37 -0800)]
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>

Rebase-Id: Rdb3aea80cb131da700098f93d562cacf195b7842

arch/arm/mach-tegra/board-enterprise.c

index 8f83444..c794de9 100644 (file)
@@ -66,11 +66,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 enterprise (Taken from Cardhu) */