diff options
author | Alex Deucher <alex@botch2.(none)> | 2008-02-11 00:33:12 -0500 |
---|---|---|
committer | Alex Deucher <alex@botch2.(none)> | 2008-02-11 00:33:12 -0500 |
commit | e33edca75bd9df0aa19a33e74c38a6d02610befd (patch) | |
tree | 64ec80ca357780924222d6d5793c20d67616c52c /src/radeon_driver.c | |
parent | 6524e33435a786f7de0064cdd1b04c1120d21593 (diff) |
RADEON: Implement proper (hopefully) BIOS/DRIVER interaction for ATOM bios
Tested on atom-based Desktop cards. It'd nice to get some testing
on atom-based laptops.
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 764f01f..db73ca7 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -74,6 +74,7 @@ #include "radeon_macros.h" #include "radeon_probe.h" #include "radeon_version.h" +#include "radeon_atombios.h" #ifdef XF86DRI #define _XF86DRI_SERVER_ @@ -2993,7 +2994,13 @@ RADEONInitBIOSRegisters(ScrnInfoPtr pScrn) save->bios_7_scratch = info->SavedReg->bios_7_scratch; if (info->IsAtomBios) { - + /* let the bios control the backlight */ + save->bios_2_scratch &= ~ATOM_S2_VRI_BRIGHT_ENABLE; + /* tell the bios not to handle mode switching */ + save->bios_6_scratch |= ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH; + + OUTREG(RADEON_BIOS_2_SCRATCH, save->bios_2_scratch); + OUTREG(RADEON_BIOS_6_SCRATCH, save->bios_6_scratch); } else { /* let the bios control the backlight */ save->bios_0_scratch &= ~RADEON_DRIVER_BRIGHTNESS_EN; |