summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ardbeg-power.c
diff options
context:
space:
mode:
authorTimo Alho <talho@nvidia.com>2014-01-10 16:14:33 +0200
committerDiwakar Tundlam <dtundlam@nvidia.com>2014-01-14 16:46:09 -0800
commitd2d73581b3810920c63f9a9763a21dc612563999 (patch)
treec98cfc94fd6ae5feed2c437262ccfeb88b65306e /arch/arm/mach-tegra/board-ardbeg-power.c
parent690575d325ef8373fa69b4a5c017daa2c43e993b (diff)
arm: tegra: p1761: enable OC1 throttling
This patch enables soc_therm OC1 throttling on p1761 platform - Configure soc_therm with 75% for CPU and "medium_throttling" for GPU - Configure KB_ROW15 as input with PULL-UP Change-Id: I8c8f597b8b62c77099ea43cf14362a6a5197f622 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/354260 GVS: Gerrit_Virtual_Submit Reviewed-by: Steve Rogers <srogers@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Vandana Bansal <vandanab@nvidia.com> Tested-by: Vandana Bansal <vandanab@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-ardbeg-power.c')
-rw-r--r--arch/arm/mach-tegra/board-ardbeg-power.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ardbeg-power.c b/arch/arm/mach-tegra/board-ardbeg-power.c
index ff7d50a9d02c..859d8db8de1c 100644
--- a/arch/arm/mach-tegra/board-ardbeg-power.c
+++ b/arch/arm/mach-tegra/board-ardbeg-power.c
@@ -1411,6 +1411,22 @@ struct soctherm_throttle battery_oc_throttle = {
},
};
+struct soctherm_throttle voltmon_throttle = {
+ .throt_mode = BRIEF,
+ .polarity = 1,
+ .priority = 50,
+ .devs = {
+ [THROTTLE_DEV_CPU] = {
+ .enable = true,
+ .depth = 75,
+ },
+ [THROTTLE_DEV_GPU] = {
+ .enable = true,
+ .throttling_depth = "medium_throttling",
+ },
+ },
+};
+
int __init ardbeg_soctherm_init(void)
{
s32 base_cp, shft_cp;
@@ -1461,6 +1477,10 @@ int __init ardbeg_soctherm_init(void)
memcpy(&ardbeg_soctherm_data.throttle[THROTTLE_OC4],
&battery_oc_throttle,
sizeof(battery_oc_throttle));
+ memcpy(&ardbeg_soctherm_data.throttle[THROTTLE_OC1],
+ &voltmon_throttle,
+ sizeof(voltmon_throttle));
+
break;
default:
break;