From 7afb57e6085cc734beca1c4dae5b187f8e74baf2 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 30 Nov 2015 09:32:15 -0800 Subject: gpu: nvgpu: Add grad slowdown HW register masks Change-Id: I8d64c36d569e79cad3648bad248624290319ac2d Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/839367 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade Reviewed-by: Seshendra Gadagottu --- drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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) { return (v & 0x3f) << 6; } +static inline u32 therm_grad_stepping_table_slowdown_factor1_m(void) +{ + return 0x3f << 6; +} static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v) { return (v & 0x3f) << 12; } +static inline u32 therm_grad_stepping_table_slowdown_factor2_m(void) +{ + return 0x3f << 12; +} static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v) { return (v & 0x3f) << 18; } +static inline u32 therm_grad_stepping_table_slowdown_factor3_m(void) +{ + return 0x3f << 18; +} static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v) { return (v & 0x3f) << 24; } +static inline u32 therm_grad_stepping_table_slowdown_factor4_m(void) +{ + return 0x3f << 24; +} static inline u32 therm_grad_stepping0_r(void) { return 0x000202c0; -- cgit v1.2.2