summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/nv_disp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/nv_disp.c b/bin/nv_disp.c
index f96c4a0ac..b083e5219 100644
--- a/bin/nv_disp.c
+++ b/bin/nv_disp.c
@@ -10,7 +10,7 @@ static void
nv_disp(struct nouveau_object *device, u16 mthd, u32 data)
{
if (nv_device(device)->card_type >= NV_50 &&
- nv_device(device)->card_type <= NV_C0) {
+ nv_device(device)->chipset < 0xd0) {
u32 ctrl = nv_ro32(device, 0x610300 + (chan * 8));
nv_wo32(device, 0x610300 + (chan * 8), ctrl | 0x00000001);
nv_wo32(device, 0x610304 + (chan * 8), data);
@@ -18,7 +18,7 @@ nv_disp(struct nouveau_object *device, u16 mthd, u32 data)
while (nv_ro32(device, 0x610300 + (chan * 8)) & 0x80000000) {}
nv_wo32(device, 0x610300 + (chan * 8), ctrl);
} else
- if (nv_device(device)->card_type >= NV_D0 &&
+ if (nv_device(device)->chipset >= 0xd0 &&
nv_device(device)->card_type <= NV_E0) {
u32 ctrl = nv_ro32(device, 0x610700 + (chan * 16));
nv_wo32(device, 0x610700 + (chan * 16), ctrl | 0x00000001);