summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h')
-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;