diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-10-19 04:15:52 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-11-07 05:04:14 +0100 |
commit | 768e847759d551c96e129e194588dbfb11a1d576 (patch) | |
tree | 58f91fed7e47f6f49e064ff261bcddddf5771ae9 /drivers/gpu/drm/nouveau | |
parent | drm/nouveau/mxm: add some extra debug output (diff) | |
download | linux-768e847759d551c96e129e194588dbfb11a1d576.tar.xz linux-768e847759d551c96e129e194588dbfb11a1d576.zip |
drm/nouveau/kms: lvds panel strap moved again on maxwell
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bios.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index a1570b109434..23ffe8571a99 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -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 |