diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2009-12-17 13:50:09 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-23 02:14:04 +0100 |
commit | 5ea597f3764880ab3a67fe2246218634a8c12778 (patch) | |
tree | 4c3db0bbd38ee4c005335b61cdf9026fff768f14 /drivers/gpu/drm/radeon/radeon_device.c | |
parent | drm/radeon/kms: prevent parallel AtomBIOS calls (diff) | |
download | linux-5ea597f3764880ab3a67fe2246218634a8c12778.tar.xz linux-5ea597f3764880ab3a67fe2246218634a8c12778.zip |
drm/radeon/kms: enable memory clock reading on legacy (V2)
V2: detect IGP cards (which don't have own memory)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Alex Deucher <alexdeucher@gmail.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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 99b95ca42a71..14df3ad64f94 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -391,6 +391,12 @@ int radeon_asic_init(struct radeon_device *rdev) /* FIXME: not supported yet */ return -EINVAL; } + + if (rdev->flags & RADEON_IS_IGP) { + rdev->asic->get_memory_clock = NULL; + rdev->asic->set_memory_clock = NULL; + } + return 0; } |