summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-03-16 14:00:16 +1000
committerDave Airlie <airlied@linux.ie>2008-03-16 14:00:16 +1000
commit5b1d9263d3c108be7360ccd3aeed4cc3a0bf1ada (patch)
tree379704acc5ce952261e73a01b5296eab373c3dfc /shared-core
parentdd9eb923edd15284113dc12c05fb341ad60f1b46 (diff)
drm/rs690: set AGP_BASE_2 to 0
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/radeon_cp.c2
-rw-r--r--shared-core/radeon_drv.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c
index b1fd6d3b..66098f91 100644
--- a/shared-core/radeon_cp.c
+++ b/shared-core/radeon_cp.c
@@ -1404,6 +1404,8 @@ static void radeon_set_rs690gart(drm_radeon_private_t * dev_priv, int on)
RS690_WRITE_MCIND(RS690_MC_AGP_BASE,
(unsigned int)dev_priv->gart_vm_start);
+ RS690_WRITE_MCIND(RS690_MC_AGP_BASE_2, 0);
+
dev_priv->gart_size = 32*1024*1024;
temp = (((dev_priv->gart_vm_start - 1 + dev_priv->gart_size) &
0xffff0000) | (dev_priv->gart_vm_start >> 16));
diff --git a/shared-core/radeon_drv.h b/shared-core/radeon_drv.h
index 1cf03415..e8fb00df 100644
--- a/shared-core/radeon_drv.h
+++ b/shared-core/radeon_drv.h
@@ -501,6 +501,7 @@ extern int r300_do_cp_cmdbuf(struct drm_device *dev,
#define RS690_MC_FB_LOCATION 0x100
#define RS690_MC_AGP_LOCATION 0x101
#define RS690_MC_AGP_BASE 0x102
+#define RS690_MC_AGP_BASE_2 0x103
#define R520_MC_IND_INDEX 0x70
#define R520_MC_IND_WR_EN (1<<24)