diff options
author | Alex Deucher <alex@botch2.(none)> | 2007-12-19 11:48:38 -0500 |
---|---|---|
committer | Alex Deucher <alex@botch2.(none)> | 2007-12-19 11:48:38 -0500 |
commit | 6afbf718c151dc3c5c59bd3136b58a93a114d798 (patch) | |
tree | 29f8800f517e904b08014d3c0f4d28ab384610ec | |
parent | 44d07c4ccce9acb5bd21a17acb082e91f7225764 (diff) |
RADEON: add support for legacy radeons with DVI and no connector table
-rw-r--r-- | src/radeon_bios.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/radeon_bios.c b/src/radeon_bios.c index d150c4bc..7d4d12ad 100644 --- a/src/radeon_bios.c +++ b/src/radeon_bios.c @@ -277,7 +277,21 @@ static Bool RADEONGetLegacyConnectorInfoFromBIOS (ScrnInfoPtr pScrn) } } else { xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "No Connector Info Table found!\n"); - return FALSE; + + /* old radeons and r128 didn't use connector tables you just check + * for LVDS, DVI, TV, etc. tables + */ + offset = RADEON_BIOS16(info->ROMHeaderStart + 0x34); + if (offset) { + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "Found DFP table, assuming DVI connector\n"); + info->BiosConnector[0].valid = TRUE; + info->BiosConnector[0].ConnectorType = CONNECTOR_DVI_I; + info->BiosConnector[0].DACType = DAC_PRIMARY; + info->BiosConnector[0].TMDSType = TMDS_INT; + info->BiosConnector[0].DDCType = DDC_DVI; + } else + return FALSE; } /* check LVDS table */ |