aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_fb.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-12-10 10:31:17 -0500
committerBen Skeggs <bskeggs@redhat.com>2012-03-13 03:05:23 -0400
commitddfd2da48421e6b217e8b4fa7ec967e55555ce65 (patch)
treeda5dab9c231eff7f45abdb605a8bc043de4de414 /drivers/gpu/drm/nouveau/nv04_fb.c
parent7ad2d31cb692597f7918fce2f52a4c1949fbcf8d (diff)
drm/nouveau: memory type detection for the really old chipsets
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_fb.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv04_fb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_fb.c b/drivers/gpu/drm/nouveau/nv04_fb.c
index db16c47fd922..d5eedd67afe5 100644
--- a/drivers/gpu/drm/nouveau/nv04_fb.c
+++ b/drivers/gpu/drm/nouveau/nv04_fb.c
@@ -29,6 +29,11 @@ nv04_fb_vram_init(struct drm_device *dev)
29 } 29 }
30 } 30 }
31 31
32 if ((boot0 & 0x00000038) <= 0x10)
33 dev_priv->vram_type = NV_MEM_TYPE_SGRAM;
34 else
35 dev_priv->vram_type = NV_MEM_TYPE_SDRAM;
36
32 return 0; 37 return 0;
33} 38}
34 39