ARM: tegra: Fix temperature trend control logic
Diwakar Tundlam [Sat, 6 Oct 2012 00:51:14 +0000 (17:51 -0700)]
Set tc2 correctly for thermal layer to assess trend

Bug 1057977

Change-Id: If92788d2b9438e5ff932407720d42d4a777b4279
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/142133
(cherry picked from commit 42f2e06818613e19a526c94646007d9919cecf6f)
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/146690
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/board-cardhu-sensors.c
arch/arm/mach-tegra/board-dalmore-sensors.c
arch/arm/mach-tegra/board-enterprise-sensors.c
arch/arm/mach-tegra/board-kai-sensors.c
arch/arm/mach-tegra/board-pluto-sensors.c
arch/arm/mach-tegra/board-ventana-sensors.c
arch/arm/mach-tegra/tegra3_tsensor.c

index 80c087b..b613474 100644 (file)
@@ -771,7 +771,7 @@ static struct nct1008_platform_data cardhu_nct1008_pdata = {
                .cdev_data = &tj_throttle,
                .trip_temp = 85000,
                .tc1 = 0,
-               .tc1 = 1,
+               .tc2 = 1,
                .passive_delay = 2000,
        }
 };
index 06bd50f..d41b4a5 100644 (file)
@@ -106,7 +106,7 @@ static struct nct1008_platform_data dalmore_nct1008_pdata = {
                .cdev_data = &tj_throttle,
                .trip_temp = 80000,
                .tc1 = 0,
-               .tc1 = 1,
+               .tc2 = 1,
                .passive_delay = 2000,
        }
 };
index ce5f052..80c66e5 100644 (file)
@@ -89,7 +89,7 @@ static struct nct1008_platform_data enterprise_nct1008_pdata = {
                .cdev_data = &tj_throttle,
                .trip_temp = 85000,
                .tc1 = 0,
-               .tc1 = 1,
+               .tc2 = 1,
                .passive_delay = 2000,
        }
 };
index b437ad5..3845c9b 100644 (file)
@@ -72,7 +72,7 @@ static struct nct1008_platform_data kai_nct1008_pdata = {
                .cdev_data = &tj_throttle,
                .trip_temp = 85000,
                .tc1 = 0,
-               .tc1 = 1,
+               .tc2 = 1,
                .passive_delay = 2000,
        }
 };
index 74d0087..8b529f0 100644 (file)
@@ -93,7 +93,7 @@ static struct nct1008_platform_data pluto_nct1008_pdata = {
                .cdev_data = &tj_throttle,
                .trip_temp = 80000,
                .tc1 = 0,
-               .tc1 = 1,
+               .tc2 = 1,
                .passive_delay = 2000,
        }
 };
index 8e7579e..c541e89 100644 (file)
@@ -263,7 +263,7 @@ static struct nct1008_platform_data ventana_nct1008_pdata = {
                .cdev_data = NULL,
                .trip_temp = 90000,
                .tc1 = 0,
-               .tc1 = 1,
+               .tc2 = 1,
                .passive_delay = 2000,
        },
 };
index 4ad4271..d9e16e1 100644 (file)
@@ -79,7 +79,7 @@ static struct tegra_tsensor_platform_data tsensor_data = {
        .passive = {
                .trip_temp = 85 + TDIODE_OFFSET - TSENSOR_OFFSET,
                .tc1 = 0,
-               .tc1 = 1,
+               .tc2 = 1,
                .passive_delay = 2000,
        }
 };