summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <bugzi06.fdo.tormod@xoxy.net>2007-06-12 23:23:49 -0400
committerAlex Deucher <alex@t41p.hsd1.va.comcast.net>2007-06-12 23:23:49 -0400
commit44748a826b52924a6e050215d8d62755e0ac7fb2 (patch)
treeb1212bb19219140b784740bcbf1be6c67e024a6c
parentc292fc64499ff4cc135c07deda99cf4169f8fef4 (diff)
RADEON: limit PanelPwrDly to 2000 ms on ATOM bios as per legacy bios
- fixes bug 11238
-rw-r--r--src/radeon_bios.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_bios.c b/src/radeon_bios.c
index e62fb257..fefa6ff7 100644
--- a/src/radeon_bios.c
+++ b/src/radeon_bios.c
@@ -432,6 +432,9 @@ Bool RADEONGetLVDSInfoFromBIOS (ScrnInfoPtr pScrn)
info->VSyncWidth = RADEON_BIOS16(tmp+20);
info->PanelPwrDly = RADEON_BIOS16(tmp+40);
+ if (info->PanelPwrDly > 2000 || info->PanelPwrDly < 0)
+ info->PanelPwrDly = 2000;
+
info->Flags = 0;
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"LVDS Info:\n"