diff options
Diffstat (limited to 'src/i830_hdmi.c')
-rw-r--r-- | src/i830_hdmi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i830_hdmi.c b/src/i830_hdmi.c index 58d1c49a..d56eec90 100644 --- a/src/i830_hdmi.c +++ b/src/i830_hdmi.c @@ -140,6 +140,15 @@ i830_hdmi_detect(xf86OutputPtr output) I830Ptr pI830 = I830PTR(pScrn); uint32_t temp, bit; + /* For G4X, PEG_BAND_GAP_DATA 3:0 must first be written 0xd. + * Failure to do so will result in spurious interrupts being + * generated on the port when a cable is not attached. + */ + if (IS_G4X(pI830)) { + temp = INREG(PEG_BAND_GAP_DATA); + OUTREG(PEG_BAND_GAP_DATA, (temp & ~0xf) | 0xd); + } + temp = INREG(PORT_HOTPLUG_EN); OUTREG(PORT_HOTPLUG_EN, |