summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/fb/fb_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/common/fb/fb_gm20b.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpu/nvgpu/common/fb/fb_gm20b.c b/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
index 9a13ecca..bf509caf 100644
--- a/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
+++ b/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
@@ -33,25 +33,11 @@
33#include <nvgpu/io.h> 33#include <nvgpu/io.h>
34#include <nvgpu/timers.h> 34#include <nvgpu/timers.h>
35 35
36#include <nvgpu/hw/gm20b/hw_mc_gm20b.h>
37#include <nvgpu/hw/gm20b/hw_fb_gm20b.h> 36#include <nvgpu/hw/gm20b/hw_fb_gm20b.h>
38 37
39#define VPR_INFO_FETCH_WAIT (5) 38#define VPR_INFO_FETCH_WAIT (5)
40#define WPR_INFO_ADDR_ALIGNMENT 0x0000000c 39#define WPR_INFO_ADDR_ALIGNMENT 0x0000000c
41 40
42void gm20b_fb_reset(struct gk20a *g)
43{
44 u32 val;
45
46 nvgpu_log_info(g, "reset gk20a fb");
47
48 val = gk20a_readl(g, mc_elpg_enable_r());
49 val |= mc_elpg_enable_xbar_enabled_f()
50 | mc_elpg_enable_pfb_enabled_f()
51 | mc_elpg_enable_hub_enabled_f();
52 gk20a_writel(g, mc_elpg_enable_r(), val);
53}
54
55void gm20b_fb_init_hw(struct gk20a *g) 41void gm20b_fb_init_hw(struct gk20a *g)
56{ 42{
57 u64 addr = nvgpu_mem_get_addr(g, &g->mm.sysmem_flush) >> 8; 43 u64 addr = nvgpu_mem_get_addr(g, &g->mm.sysmem_flush) >> 8;