summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/cpu-tegra.c
diff options
context:
space:
mode:
authorJoshua Primero <jprimero@nvidia.com>2011-10-03 22:23:53 -0700
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-08 17:03:16 +0530
commite93fee7719a78f60a1e9fe48d29cd325b723ee67 (patch)
tree2d184c51265d2f8d46923d9c5b1afa18fe5e5849 /arch/arm/mach-tegra/cpu-tegra.c
parentef10446dfc8eae4f47d032cb71ca8af44281d5a9 (diff)
arm: tegra: power: Device agnostic thermal driver
Added a thermal driver which is agonistic to the device driver which will make it easier to port thermal devices to android tegra. Reviewed-on: http://git-master/r/55883 Reviewed-on: http://git-master/r/59471 (cherry picked from commit b89dbb5a64bcb3124794f644e71658de83a4ab71) Change-Id: Ib3c7100144ea0a98ac7c15e404d4d9e7737018e5 Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/66548 Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpu-tegra.c')
-rw-r--r--arch/arm/mach-tegra/cpu-tegra.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/cpu-tegra.c b/arch/arm/mach-tegra/cpu-tegra.c
index d6793f87cc5f..598c6b0408a9 100644
--- a/arch/arm/mach-tegra/cpu-tegra.c
+++ b/arch/arm/mach-tegra/cpu-tegra.c
@@ -38,6 +38,7 @@
#include <mach/clk.h>
#include <mach/edp.h>
+#include <mach/thermal.h>
#include "clock.h"
#include "cpu-tegra.h"
@@ -647,6 +648,10 @@ static int __init tegra_cpufreq_init(void)
suspend_index = table_data->suspend_index;
+ ret = tegra_thermal_init();
+ if (ret)
+ return ret;
+
ret = tegra_throttle_init(&tegra_cpu_lock);
if (ret)
return ret;