summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-loki-power.c
diff options
context:
space:
mode:
authorDiwakar Tundlam <dtundlam@nvidia.com>2013-11-08 16:38:33 -0800
committerDiwakar Tundlam <dtundlam@nvidia.com>2013-11-12 11:44:53 -0800
commit00cac33a7f8fbf4d32ba7592179b967f23264ac7 (patch)
tree1c28a1be57ebb07f620ed75fd280801023a083db /arch/arm/mach-tegra/board-loki-power.c
parent96775f9bc2365e0533a5ba4bb7982000221daa1e (diff)
arm: tegra: initialize GPU EDP in T12x boards
Bug 1307919 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Change-Id: I6b6ef6dae353f3618a55b7bc84b36e5bf7115584 Reviewed-on: http://git-master/r/328513 Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-loki-power.c')
-rw-r--r--arch/arm/mach-tegra/board-loki-power.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-loki-power.c b/arch/arm/mach-tegra/board-loki-power.c
index a291ad5f5cc9..c95c6ab2361f 100644
--- a/arch/arm/mach-tegra/board-loki-power.c
+++ b/arch/arm/mach-tegra/board-loki-power.c
@@ -800,6 +800,11 @@ int __init loki_edp_init(void)
pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);
tegra_init_cpu_edp_limits(regulator_mA);
+ /* gpu maximum current */
+ regulator_mA = 12000;
+ pr_info("%s: GPU regulator %d mA\n", __func__, regulator_mA);
+
+ tegra_init_gpu_edp_limits(regulator_mA);
return 0;
}
@@ -934,6 +939,10 @@ int __init loki_soctherm_init(void)
loki_soctherm_data.therm[THERM_CPU].trips,
&loki_soctherm_data.therm[THERM_CPU].num_trips,
8000); /* edp temperature margin */
+ tegra_platform_gpu_edp_init(
+ loki_soctherm_data.therm[THERM_GPU].trips,
+ &loki_soctherm_data.therm[THERM_GPU].num_trips,
+ 8000);
tegra_add_tj_trips(
loki_soctherm_data.therm[THERM_CPU].trips,
&loki_soctherm_data.therm[THERM_CPU].num_trips);