From 2b0cdd9448a24ea067b0d78f319b99c1041df2e0 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Wed, 3 May 2006 04:25:27 +0000 Subject: Enable decoding of version 4 TMDS PLL config tables, they actually work, the problem in the comment only concerned pre-production cards that Hui tested apparently. Also set back the default value to what it was initially, fixes some more cards that don't have a proper table (Mac Mini for example) --- src/radeon_bios.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/radeon_bios.c') diff --git a/src/radeon_bios.c b/src/radeon_bios.c index dbe29784..1ea0550f 100644 --- a/src/radeon_bios.c +++ b/src/radeon_bios.c @@ -556,6 +556,17 @@ Bool RADEONGetTMDSInfoFromBIOS (ScrnInfoPtr pScrn) info->tmds_pll[i].freq = RADEON_BIOS16(tmp+i*10+0x10); } return TRUE; + } else if (RADEON_BIOS8(tmp) == 4) { + int stride = 0; + n = RADEON_BIOS8(tmp + 5) + 1; + if (n > 4) n = 4; + for (i=0; itmds_pll[i].value = RADEON_BIOS32(tmp+stride+0x08); + info->tmds_pll[i].freq = RADEON_BIOS16(tmp+stride+0x10); + if (i == 0) stride += 10; + else stride += 6; + } + return TRUE; } /* revision 4 has some problem as it appears in RV280, -- cgit v1.2.3