diff options
author | Jerome Glisse <jglisse@redhat.com> | 2009-09-09 22:24:20 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-09-10 10:13:33 +1000 |
commit | 905b68223be18937159a29b354e6a332952ff952 (patch) | |
tree | 3a2e955e7beba517a33d5e0e7eeed350ce6a9a70 /drivers/gpu/drm/radeon/radeon_device.c | |
parent | a18d7ea15356679f58c2fafe2957786c5f7f9201 (diff) | |
download | lwn-905b68223be18937159a29b354e6a332952ff952.tar.gz lwn-905b68223be18937159a29b354e6a332952ff952.zip |
drm/radeon/kms: add R4XX mc register access helper.
Atombios will use the mc register access helper and R4XX hw have a
bigger mc range than R3XX so add R4XX specific mc register access
helper.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index f2469c511789..05e1af0156c8 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -266,6 +266,10 @@ void radeon_register_accessor_init(struct radeon_device *rdev) rdev->pll_rreg = &r100_pll_rreg; rdev->pll_wreg = &r100_pll_wreg; } + if (rdev->family >= CHIP_R420) { + rdev->mc_rreg = &r420_mc_rreg; + rdev->mc_wreg = &r420_mc_wreg; + } if (rdev->family >= CHIP_RV515) { rdev->mc_rreg = &rv515_mc_rreg; rdev->mc_wreg = &rv515_mc_wreg; |