summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-02-21 12:53:09 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-03-26 10:57:57 +1000
commit524fed65ba9fc29837ea51c9a3e5c96632c8d36a (patch)
tree7f0a0a500e97b8c317ca7b12280d6ce6d61915d9 /bin
parent6fb4abcf27afc895dac75ede3c069e739855bd5a (diff)
downloadnouveau-524fed65ba9fc29837ea51c9a3e5c96632c8d36a.tar.gz
tools: fix nv_disp for fermi
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'bin')
-rw-r--r--bin/nv_disp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/nv_disp.c b/bin/nv_disp.c
index 2b2011380..f96c4a0ac 100644
--- a/bin/nv_disp.c
+++ b/bin/nv_disp.c
@@ -9,7 +9,8 @@ static unsigned long chan = 0;
static void
nv_disp(struct nouveau_object *device, u16 mthd, u32 data)
{
- if (nv_device(device)->card_type == NV_50) {
+ if (nv_device(device)->card_type >= NV_50 &&
+ nv_device(device)->card_type <= NV_C0) {
u32 ctrl = nv_ro32(device, 0x610300 + (chan * 8));
nv_wo32(device, 0x610300 + (chan * 8), ctrl | 0x00000001);
nv_wo32(device, 0x610304 + (chan * 8), data);