ARM: tegra11: Add voltage capping trip points
Amit Kamath [Mon, 11 Mar 2013 09:58:56 +0000 (14:58 +0530)]
Trip points to detect thermal state changes over a range of
temperatures added by calling board independent function.

bug 1042409

Change-Id: Ifb139ae676f07c74a6dae5599fe7232ed601ebe2
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/208015
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

arch/arm/mach-tegra/board-dalmore-power.c
arch/arm/mach-tegra/board-macallan-power.c
arch/arm/mach-tegra/board-pluto-power.c
arch/arm/mach-tegra/board-roth-power.c

index 0cf1c1d..70379d5 100644 (file)
@@ -1389,6 +1389,8 @@ int __init dalmore_soctherm_init(void)
                        8000); /* edp temperature margin */
        tegra_add_tj_trips(dalmore_soctherm_data.therm[THERM_CPU].trips,
                        &dalmore_soctherm_data.therm[THERM_CPU].num_trips);
+       tegra_add_vc_trips(dalmore_soctherm_data.therm[THERM_CPU].trips,
+                       &dalmore_soctherm_data.therm[THERM_CPU].num_trips);
 
        return tegra11_soctherm_init(&dalmore_soctherm_data);
 }
index 32fe2a7..77964a0 100644 (file)
@@ -729,6 +729,9 @@ int __init macallan_soctherm_init(void)
                        8000); /* edp temperature margin */
        tegra_add_tj_trips(macallan_soctherm_data.therm[THERM_CPU].trips,
                        &macallan_soctherm_data.therm[THERM_CPU].num_trips);
+       tegra_add_vc_trips(macallan_soctherm_data.therm[THERM_CPU].trips,
+                       &macallan_soctherm_data.therm[THERM_CPU].num_trips);
+
 
        return tegra11_soctherm_init(&macallan_soctherm_data);
 }
index 784f19e..c55ae73 100644 (file)
@@ -829,6 +829,8 @@ int __init pluto_soctherm_init(void)
                        8000);  /* edp temperature margin */
        tegra_add_tj_trips(pluto_soctherm_data.therm[THERM_CPU].trips,
                        &pluto_soctherm_data.therm[THERM_CPU].num_trips);
+       tegra_add_vc_trips(pluto_soctherm_data.therm[THERM_CPU].trips,
+                       &pluto_soctherm_data.therm[THERM_CPU].num_trips);
 
        return tegra11_soctherm_init(&pluto_soctherm_data);
 }
index 5336103..0daac2e 100644 (file)
@@ -45,6 +45,7 @@
 #include "tegra-board-id.h"
 #include "board-pmu-defines.h"
 #include "board.h"
+#include "board-common.h"
 #include "gpio-names.h"
 #include "board-roth.h"
 #include "tegra_cl_dvfs.h"
@@ -849,5 +850,8 @@ static struct soctherm_platform_data roth_soctherm_data = {
 
 int __init roth_soctherm_init(void)
 {
+       tegra_add_vc_trips(roth_soctherm_data.therm[THERM_CPU].trips,
+                       &roth_soctherm_data.therm[THERM_CPU].num_trips);
+
        return tegra11_soctherm_init(&roth_soctherm_data);
 }