diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h index 9943cf31..5a696409 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h | |||
@@ -54,18 +54,54 @@ static inline u32 therm_use_a_r(void) | |||
54 | { | 54 | { |
55 | return 0x00020798; | 55 | return 0x00020798; |
56 | } | 56 | } |
57 | static inline u32 therm_use_a_ext_therm_0_enable_f(void) | ||
58 | { | ||
59 | return 0x1; | ||
60 | } | ||
61 | static inline u32 therm_use_a_ext_therm_1_enable_f(void) | ||
62 | { | ||
63 | return 0x2; | ||
64 | } | ||
65 | static inline u32 therm_use_a_ext_therm_2_enable_f(void) | ||
66 | { | ||
67 | return 0x4; | ||
68 | } | ||
57 | static inline u32 therm_evt_ext_therm_0_r(void) | 69 | static inline u32 therm_evt_ext_therm_0_r(void) |
58 | { | 70 | { |
59 | return 0x00020700; | 71 | return 0x00020700; |
60 | } | 72 | } |
73 | static inline u32 therm_evt_ext_therm_0_slow_factor_f(u32 v) | ||
74 | { | ||
75 | return (v & 0x3f) << 8; | ||
76 | } | ||
77 | static inline u32 therm_evt_ext_therm_0_slow_factor_init_v(void) | ||
78 | { | ||
79 | return 0x00000000; | ||
80 | } | ||
61 | static inline u32 therm_evt_ext_therm_1_r(void) | 81 | static inline u32 therm_evt_ext_therm_1_r(void) |
62 | { | 82 | { |
63 | return 0x00020704; | 83 | return 0x00020704; |
64 | } | 84 | } |
85 | static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v) | ||
86 | { | ||
87 | return (v & 0x3f) << 8; | ||
88 | } | ||
89 | static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void) | ||
90 | { | ||
91 | return 0x00000000; | ||
92 | } | ||
65 | static inline u32 therm_evt_ext_therm_2_r(void) | 93 | static inline u32 therm_evt_ext_therm_2_r(void) |
66 | { | 94 | { |
67 | return 0x00020708; | 95 | return 0x00020708; |
68 | } | 96 | } |
97 | static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v) | ||
98 | { | ||
99 | return (v & 0x3f) << 8; | ||
100 | } | ||
101 | static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void) | ||
102 | { | ||
103 | return 0x00000000; | ||
104 | } | ||
69 | static inline u32 therm_weight_1_r(void) | 105 | static inline u32 therm_weight_1_r(void) |
70 | { | 106 | { |
71 | return 0x00020024; | 107 | return 0x00020024; |