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/gm20b | |
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/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_mc_gm20b.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_mc_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_mc_gm20b.h index 3750de06..ed114e32 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_mc_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_mc_gm20b.h | |||
@@ -262,4 +262,20 @@ static inline u32 mc_enable_pb_sel_f(u32 v, u32 i) | |||
262 | { | 262 | { |
263 | return (v & 0x1) << (0 + i*1); | 263 | return (v & 0x1) << (0 + i*1); |
264 | } | 264 | } |
265 | static inline u32 mc_elpg_enable_r(void) | ||
266 | { | ||
267 | return 0x0000020c; | ||
268 | } | ||
269 | static inline u32 mc_elpg_enable_xbar_enabled_f(void) | ||
270 | { | ||
271 | return 0x4; | ||
272 | } | ||
273 | static inline u32 mc_elpg_enable_pfb_enabled_f(void) | ||
274 | { | ||
275 | return 0x100000; | ||
276 | } | ||
277 | static inline u32 mc_elpg_enable_hub_enabled_f(void) | ||
278 | { | ||
279 | return 0x20000000; | ||
280 | } | ||
265 | #endif | 281 | #endif |