]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/nouveau/kms: lvds panel strap moved again on maxwell
authorBen Skeggs <bskeggs@redhat.com>
Wed, 19 Oct 2016 02:15:52 +0000 (12:15 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:14 +0000 (14:04 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/nouveau_bios.c

index a1570b109434057db887acff8fc71e634595a430..23ffe8571a990d2a0e9574253edfee30fb96df04 100644 (file)
@@ -333,6 +333,9 @@ get_fp_strap(struct drm_device *dev, struct nvbios *bios)
        if (bios->major_version < 5 && bios->data[0x48] & 0x4)
                return NVReadVgaCrtc5758(dev, 0, 0xf) & 0xf;
 
+       if (drm->device.info.family >= NV_DEVICE_INFO_V0_MAXWELL)
+               return nvif_rd32(device, 0x001800) & 0x0000000f;
+       else
        if (drm->device.info.family >= NV_DEVICE_INFO_V0_TESLA)
                return (nvif_rd32(device, NV_PEXTDEV_BOOT_0) >> 24) & 0xf;
        else