]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm: tegra: enable therm_trip with soctherm
authorDiwakar Tundlam <dtundlam@nvidia.com>
Thu, 22 Aug 2013 18:29:34 +0000 (11:29 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Tue, 17 Sep 2013 00:40:53 +0000 (17:40 -0700)
Bug 1291108

Change-Id: I0aaed6b574e64d3200438d831b2320d50da9ccd0
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/266926
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com>
arch/arm/mach-tegra/board-ardbeg-power.c

index c1b27a1e02972669a6f4030dcad602382a56887f..81490a2bdf566d102619ba38b57fb652ac360a04 100644 (file)
@@ -1230,6 +1230,16 @@ static struct thermal_zone_params soctherm_tzp = {
        .governor_params = &soctherm_pid_params,
 };
 
+static struct tegra_tsensor_pmu_data tpdata_palmas = {
+       .reset_tegra = 1,
+       .pmu_16bit_ops = 0,
+       .controller_type = 0,
+       .pmu_i2c_addr = 0x58,
+       .i2c_controller_id = 4,
+       .poweroff_reg_addr = 0xa0,
+       .poweroff_reg_data = 0x0,
+};
+
 static struct soctherm_platform_data ardbeg_soctherm_data = {
        .therm = {
                [THERM_CPU] = {
@@ -1320,6 +1330,7 @@ static struct soctherm_platform_data ardbeg_soctherm_data = {
                        },
                },
        },
+       .tshut_pmu_trip_data = &tpdata_palmas,
 };
 
 int __init ardbeg_soctherm_init(void)