diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2014-06-19 22:22:17 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:16 -0400 |
commit | 6f492c3834fe18fe3d00d0024b8178250bed7276 (patch) | |
tree | 78a8d84899b468a3ee0b85dd4558b0b6037a77ad /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | 6838d9f05e0d712925f759b90c830b2d513ce7a6 (diff) |
gpu: nvgpu: make pm config as platform data
Make gpu power management feature configurations
as platform data. Keep existing sttaus for gk20a
and disable all power features for gm20b.
Bug 1523728
Change-Id: Ife7786863f18e21b882ac77085c7abc7c84d4cfc
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/426369
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Supriya Sharatkumar <ssharatkumar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index c13c9614..c1150bac 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -1455,14 +1455,18 @@ static int gk20a_probe(struct platform_device *dev) | |||
1455 | if (tegra_platform_is_silicon()) | 1455 | if (tegra_platform_is_silicon()) |
1456 | gk20a->timeouts_enabled = true; | 1456 | gk20a->timeouts_enabled = true; |
1457 | 1457 | ||
1458 | /* Set up initial clock gating settings */ | 1458 | /* Set up initial power settings. For non-slicon platforms, disable * |
1459 | if (tegra_platform_is_silicon()) { | 1459 | * power features and for silicon platforms, read from platform data */ |
1460 | gk20a->slcg_enabled = true; | 1460 | gk20a->slcg_enabled = |
1461 | gk20a->blcg_enabled = true; | 1461 | tegra_platform_is_silicon() ? platform->enable_slcg : false; |
1462 | gk20a->elcg_enabled = true; | 1462 | gk20a->blcg_enabled = |
1463 | gk20a->elpg_enabled = true; | 1463 | tegra_platform_is_silicon() ? platform->enable_blcg : false; |
1464 | gk20a->aelpg_enabled = true; | 1464 | gk20a->elcg_enabled = |
1465 | } | 1465 | tegra_platform_is_silicon() ? platform->enable_elcg : false; |
1466 | gk20a->elpg_enabled = | ||
1467 | tegra_platform_is_silicon() ? platform->enable_elpg : false; | ||
1468 | gk20a->aelpg_enabled = | ||
1469 | tegra_platform_is_silicon() ? platform->enable_aelpg : false; | ||
1466 | 1470 | ||
1467 | gk20a_create_sysfs(dev); | 1471 | gk20a_create_sysfs(dev); |
1468 | 1472 | ||