diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2019-05-13 07:17:04 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-05-15 19:14:30 -0400 |
commit | 1f867543daece1ec529211d6d66c9799eab6220f (patch) | |
tree | e56b479d9807526a7c689c6d585329363e3e87e9 /drivers/gpu/nvgpu/os/linux/platform_gk20a.h | |
parent | 543a904e630dfe78b193803ad04d2bd12380c2b0 (diff) |
gpu: nvgpu: Add DT support for TPC_PG_POWERGATE
Added support for TPC_PG_POWERGATE during probe for nvgpu via DT.
A new DT binding GV11B_FUSE_OPT_TPC_DISABLE is supported by nvgpu
driver that checks for valid masks and updates the global tpc_pg_mask
flag.
Bug 200518434
Change-Id: Ia65ae518b48e36d28de5e9375bc994232f6a9438
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2117783
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/platform_gk20a.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/platform_gk20a.h b/drivers/gpu/nvgpu/os/linux/platform_gk20a.h index 1331c941..2ddadd2e 100644 --- a/drivers/gpu/nvgpu/os/linux/platform_gk20a.h +++ b/drivers/gpu/nvgpu/os/linux/platform_gk20a.h | |||
@@ -196,6 +196,9 @@ struct gk20a_platform { | |||
196 | /* Pre callback is called before frequency change */ | 196 | /* Pre callback is called before frequency change */ |
197 | void (*prescale)(struct device *dev); | 197 | void (*prescale)(struct device *dev); |
198 | 198 | ||
199 | /* Set TPC_PG during probe */ | ||
200 | void (*set_tpc_pg_mask)(struct device *dev, u32 tpc_mask); | ||
201 | |||
199 | /* Devfreq governor name. If scaling is enabled, we request | 202 | /* Devfreq governor name. If scaling is enabled, we request |
200 | * this governor to be used in scaling */ | 203 | * this governor to be used in scaling */ |
201 | const char *devfreq_governor; | 204 | const char *devfreq_governor; |