aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/rv515.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/rv515.c')
-rw-r--r--drivers/gpu/drm/radeon/rv515.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c
index 551e608702e4..31a7f668ae5a 100644
--- a/drivers/gpu/drm/radeon/rv515.c
+++ b/drivers/gpu/drm/radeon/rv515.c
@@ -370,6 +370,7 @@ void rv515_vram_info(struct radeon_device *rdev)
370 370
371 rv515_vram_get_type(rdev); 371 rv515_vram_get_type(rdev);
372 372
373 r100_vram_init_sizes(rdev);
373 /* FIXME: we should enforce default clock in case GPU is not in 374 /* FIXME: we should enforce default clock in case GPU is not in
374 * default setup 375 * default setup
375 */ 376 */
@@ -399,25 +400,6 @@ void rv515_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v)
399 WREG32(MC_IND_INDEX, 0); 400 WREG32(MC_IND_INDEX, 0);
400} 401}
401 402
402uint32_t rv515_pcie_rreg(struct radeon_device *rdev, uint32_t reg)
403{
404 uint32_t r;
405
406 WREG32(PCIE_INDEX, ((reg) & 0x7ff));
407 (void)RREG32(PCIE_INDEX);
408 r = RREG32(PCIE_DATA);
409 return r;
410}
411
412void rv515_pcie_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v)
413{
414 WREG32(PCIE_INDEX, ((reg) & 0x7ff));
415 (void)RREG32(PCIE_INDEX);
416 WREG32(PCIE_DATA, (v));
417 (void)RREG32(PCIE_DATA);
418}
419
420
421/* 403/*
422 * Debugfs info 404 * Debugfs info
423 */ 405 */