]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/blobdiff - drivers/gpu/drm/radeon/r600.c
Merge branch 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
[lisovros/linux_canprio.git] / drivers / gpu / drm / radeon / r600.c
index 6b7a40b501c0e9901b540a48c1021c45e80336c3..2e4e60edbff4e3a08fb80b727b617a18164af5e9 100644 (file)
@@ -1506,6 +1506,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;