diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h index 67f1bbc2..d4c04116 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h | |||
@@ -54,18 +54,66 @@ 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 | } | ||
81 | static inline u32 therm_evt_ext_therm_0_priority_f(u32 v) | ||
82 | { | ||
83 | return (v & 0x1f) << 24; | ||
84 | } | ||
61 | static inline u32 therm_evt_ext_therm_1_r(void) | 85 | static inline u32 therm_evt_ext_therm_1_r(void) |
62 | { | 86 | { |
63 | return 0x00020704; | 87 | return 0x00020704; |
64 | } | 88 | } |
89 | static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v) | ||
90 | { | ||
91 | return (v & 0x3f) << 8; | ||
92 | } | ||
93 | static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void) | ||
94 | { | ||
95 | return 0x00000000; | ||
96 | } | ||
97 | static inline u32 therm_evt_ext_therm_1_priority_f(u32 v) | ||
98 | { | ||
99 | return (v & 0x1f) << 24; | ||
100 | } | ||
65 | static inline u32 therm_evt_ext_therm_2_r(void) | 101 | static inline u32 therm_evt_ext_therm_2_r(void) |
66 | { | 102 | { |
67 | return 0x00020708; | 103 | return 0x00020708; |
68 | } | 104 | } |
105 | static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v) | ||
106 | { | ||
107 | return (v & 0x3f) << 8; | ||
108 | } | ||
109 | static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void) | ||
110 | { | ||
111 | return 0x00000000; | ||
112 | } | ||
113 | static inline u32 therm_evt_ext_therm_2_priority_f(u32 v) | ||
114 | { | ||
115 | return (v & 0x1f) << 24; | ||
116 | } | ||
69 | static inline u32 therm_weight_1_r(void) | 117 | static inline u32 therm_weight_1_r(void) |
70 | { | 118 | { |
71 | return 0x00020024; | 119 | return 0x00020024; |