diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-11-05 02:33:40 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-01-11 11:10:49 +1000 |
commit | 6e6dcc1197a0a1c873bc440158bf7c6b1228a69c (patch) | |
tree | 6c44304f31a85f0a4af63a82c31d245e66beedca /drm/nouveau/nvkm/subdev/fb/ramgk104.c | |
parent | 33568b3b89524ef8d2375ebf08045ddf5dfae6ed (diff) | |
download | nouveau-6e6dcc1197a0a1c873bc440158bf7c6b1228a69c.tar.gz |
nvkm: add/remove 0's to make 7 (or 9)-nibble constants use 8 nibbles
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau/nvkm/subdev/fb/ramgk104.c')
-rw-r--r-- | drm/nouveau/nvkm/subdev/fb/ramgk104.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drm/nouveau/nvkm/subdev/fb/ramgk104.c b/drm/nouveau/nvkm/subdev/fb/ramgk104.c index 9df45030f..1fa3ade46 100644 --- a/drm/nouveau/nvkm/subdev/fb/ramgk104.c +++ b/drm/nouveau/nvkm/subdev/fb/ramgk104.c @@ -216,11 +216,11 @@ r1373f4_fini(struct gk104_ramfuc *fuc) ram_wr32(fuc, 0x1373ec, tmp | (v1 << 16)); ram_mask(fuc, 0x1373f0, (~ram->mode & 3), 0x00000000); if (ram->mode == 2) { - ram_mask(fuc, 0x1373f4, 0x00000003, 0x000000002); - ram_mask(fuc, 0x1373f4, 0x00001100, 0x000000000); + ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000002); + ram_mask(fuc, 0x1373f4, 0x00001100, 0x00000000); } else { - ram_mask(fuc, 0x1373f4, 0x00000003, 0x000000001); - ram_mask(fuc, 0x1373f4, 0x00010000, 0x000000000); + ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000001); + ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); } ram_mask(fuc, 0x10f800, 0x00000030, (v0 ^ v1) << 4); } |