Merge remote branch 'airlied/drm-next' into drm-intel-next
[linux-2.6-block.git] / drivers / gpu / drm / radeon / r600.c
index 3e5703f324bd77761d9b634c54644f40cee06ac9..00cd0500ca7f73e9a6cdb430c84688b1341be617 100644 (file)
@@ -1531,6 +1531,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;