]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/gpu/drm/radeon/r600.c
Merge branch 'drm-next' of ../drm-next into drm-linus
[mv-sheeva.git] / drivers / gpu / drm / radeon / r600.c
index 6b43a95a5fb2df7c79e3096122a7f97dbbfc67fb..609719490ec28c26b064df9d43eb642954fbb442 100644 (file)
@@ -1534,6 +1534,20 @@ int r600_startup(struct radeon_device *rdev)
        return 0;
 }
 
+void r600_vga_set_state(struct radeon_device *rdev, bool state)
+{
+       uint32_t temp;
+
+       temp = RREG32(CONFIG_CNTL);
+       if (state == false) {
+               temp &= ~(1<<0);
+               temp |= (1<<1);
+       } else {
+               temp &= ~(1<<1);
+       }
+       WREG32(CONFIG_CNTL, temp);
+}
+
 int r600_resume(struct radeon_device *rdev)
 {
        int r;