diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-02-11 16:10:25 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:08:03 -0400 |
commit | b82c86a8650aa11cd730c5b8a62315d63ce62ad4 (patch) | |
tree | 89feca44fa4a69cf8ebff0ea53bab90a1413a4b0 /drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h | |
parent | 3877adcd656e8e4329e2c4250119de2256f30730 (diff) |
gpu: nvgpu: Ensure memory subsystem is enabled
Ensure that memory subsystem is enabled at init.
Bug 1603128
Change-Id: Ie3fcd4d9df4dbd480e44fa8919fc311e61b627ca
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/707027
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h index 97517a77..ea3c2528 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h | |||
@@ -266,4 +266,20 @@ static inline u32 mc_enable_pb_sel_f(u32 v, u32 i) | |||
266 | { | 266 | { |
267 | return (v & 0x1) << (0 + i*1); | 267 | return (v & 0x1) << (0 + i*1); |
268 | } | 268 | } |
269 | static inline u32 mc_elpg_enable_r(void) | ||
270 | { | ||
271 | return 0x0000020c; | ||
272 | } | ||
273 | static inline u32 mc_elpg_enable_xbar_enabled_f(void) | ||
274 | { | ||
275 | return 0x4; | ||
276 | } | ||
277 | static inline u32 mc_elpg_enable_pfb_enabled_f(void) | ||
278 | { | ||
279 | return 0x100000; | ||
280 | } | ||
281 | static inline u32 mc_elpg_enable_hub_enabled_f(void) | ||
282 | { | ||
283 | return 0x20000000; | ||
284 | } | ||
269 | #endif | 285 | #endif |