diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-05-03 04:25:27 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-05-03 04:25:27 +0000 |
commit | 2b0cdd9448a24ea067b0d78f319b99c1041df2e0 (patch) | |
tree | bb86e941de05989d6c352ff153649a5daa197aad /src/radeon_bios.c | |
parent | 36c04b88416905b9ae305583e8e34fefdbfafc50 (diff) |
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)
Diffstat (limited to 'src/radeon_bios.c')
-rw-r--r-- | src/radeon_bios.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/radeon_bios.c b/src/radeon_bios.c index dbe2978..1ea0550 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; i<n; i++) { + info->tmds_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, |