drm/nouveau: add NV18 device id to call_lvds_manufacturer_script
authorAndrea Tacconi <tacconet@libero.it>
Thu, 14 Jan 2010 13:52:37 +0000 (14:52 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jan 2010 23:28:02 +0000 (09:28 +1000)
This fixes imac black screen (NV18 card)

Signed-off-by: Andrea Tacconi <tacconet@libero.it>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bios.c

index ca2fcdf32b842f644e971cea4914f40b09a75e9d..03f1ddbaa2dfabbc768a18877d8c0b99ca0e02e5 100644 (file)
@@ -3155,7 +3155,7 @@ static int call_lvds_manufacturer_script(struct drm_device *dev, struct dcb_entr
        }
 #ifdef __powerpc__
        /* Powerbook specific quirks */
-       if (script == LVDS_RESET && ((dev->pci_device & 0xffff) == 0x0179 || (dev->pci_device & 0xffff) == 0x0329))
+       if (script == LVDS_RESET && ((dev->pci_device & 0xffff) == 0x0179 || (dev->pci_device & 0xffff) == 0x0189 || (dev->pci_device & 0xffff) == 0x0329))
                nv_write_tmds(dev, dcbent->or, 0, 0x02, 0x72);
        if ((dev->pci_device & 0xffff) == 0x0179 || (dev->pci_device & 0xffff) == 0x0189 || (dev->pci_device & 0xffff) == 0x0329) {
                if (script == LVDS_PANEL_ON) {