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/platform_gk20a_tegra.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/platform_gk20a_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c index 9f2a7971..28f82816 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | |||
@@ -534,6 +534,12 @@ struct gk20a_platform t132_gk20a_tegra_platform = { | |||
534 | .railgate_delay = 500, | 534 | .railgate_delay = 500, |
535 | .clockgate_delay = 50, | 535 | .clockgate_delay = 50, |
536 | .can_railgate = true, | 536 | .can_railgate = true, |
537 | .enable_slcg = true, | ||
538 | .enable_blcg = true, | ||
539 | .enable_elcg = true, | ||
540 | .enable_elpg = true, | ||
541 | .enable_aelpg = true, | ||
542 | |||
537 | 543 | ||
538 | .probe = gk20a_tegra_probe, | 544 | .probe = gk20a_tegra_probe, |
539 | .late_probe = gk20a_tegra_late_probe, | 545 | .late_probe = gk20a_tegra_late_probe, |
@@ -562,6 +568,11 @@ struct gk20a_platform gk20a_tegra_platform = { | |||
562 | .railgate_delay = 500, | 568 | .railgate_delay = 500, |
563 | .clockgate_delay = 50, | 569 | .clockgate_delay = 50, |
564 | .can_railgate = true, | 570 | .can_railgate = true, |
571 | .enable_slcg = true, | ||
572 | .enable_blcg = true, | ||
573 | .enable_elcg = true, | ||
574 | .enable_elpg = true, | ||
575 | .enable_aelpg = true, | ||
565 | 576 | ||
566 | .probe = gk20a_tegra_probe, | 577 | .probe = gk20a_tegra_probe, |
567 | .late_probe = gk20a_tegra_late_probe, | 578 | .late_probe = gk20a_tegra_late_probe, |
@@ -589,6 +600,13 @@ struct gk20a_platform gm20b_tegra_platform = { | |||
589 | /* power management configuration */ | 600 | /* power management configuration */ |
590 | .railgate_delay = 500, | 601 | .railgate_delay = 500, |
591 | .clockgate_delay = 50, | 602 | .clockgate_delay = 50, |
603 | /* Disable all power features for gm20b */ | ||
604 | .can_railgate = false, | ||
605 | .enable_slcg = false, | ||
606 | .enable_blcg = false, | ||
607 | .enable_elcg = false, | ||
608 | .enable_elpg = false, | ||
609 | .enable_aelpg = false, | ||
592 | 610 | ||
593 | .probe = gk20a_tegra_probe, | 611 | .probe = gk20a_tegra_probe, |
594 | .late_probe = gk20a_tegra_late_probe, | 612 | .late_probe = gk20a_tegra_late_probe, |