summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-11-30 12:32:15 -0500
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-12-08 12:41:10 -0500
commit7afb57e6085cc734beca1c4dae5b187f8e74baf2 (patch)
tree04405e79c62b72d96e9e8c2294ff0c2a94d7cdb9
parent52753b51f1dbf51221d7856a9288aad1ab2d351a (diff)
gpu: nvgpu: Add grad slowdown HW register masks
Change-Id: I8d64c36d569e79cad3648bad248624290319ac2d Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/839367 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h
index 5a696409..a0d8ffc9 100644
--- a/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h
@@ -262,18 +262,34 @@ static inline u32 therm_grad_stepping_table_slowdown_factor1_f(u32 v)
262{ 262{
263 return (v & 0x3f) << 6; 263 return (v & 0x3f) << 6;
264} 264}
265static inline u32 therm_grad_stepping_table_slowdown_factor1_m(void)
266{
267 return 0x3f << 6;
268}
265static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v) 269static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v)
266{ 270{
267 return (v & 0x3f) << 12; 271 return (v & 0x3f) << 12;
268} 272}
273static inline u32 therm_grad_stepping_table_slowdown_factor2_m(void)
274{
275 return 0x3f << 12;
276}
269static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v) 277static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v)
270{ 278{
271 return (v & 0x3f) << 18; 279 return (v & 0x3f) << 18;
272} 280}
281static inline u32 therm_grad_stepping_table_slowdown_factor3_m(void)
282{
283 return 0x3f << 18;
284}
273static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v) 285static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v)
274{ 286{
275 return (v & 0x3f) << 24; 287 return (v & 0x3f) << 24;
276} 288}
289static inline u32 therm_grad_stepping_table_slowdown_factor4_m(void)
290{
291 return 0x3f << 24;
292}
277static inline u32 therm_grad_stepping0_r(void) 293static inline u32 therm_grad_stepping0_r(void)
278{ 294{
279 return 0x000202c0; 295 return 0x000202c0;