drm/nv4c/vga: decode register is in a different place on nv4x igp's
Suggested-by: Marcin Kościelnicki <koriakin@0x04.net> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
fa8c9ac72f
commit
b71313e14b
|
@ -14,7 +14,9 @@ nouveau_vga_set_decode(void *priv, bool state)
|
|||
{
|
||||
struct nouveau_device *device = nouveau_dev(priv);
|
||||
|
||||
if (device->chipset >= 0x40)
|
||||
if (device->card_type == NV_40 && device->chipset >= 0x4c)
|
||||
nv_wr32(device, 0x088060, state);
|
||||
else if (device->chipset >= 0x40)
|
||||
nv_wr32(device, 0x088054, state);
|
||||
else
|
||||
nv_wr32(device, 0x001854, state);
|
||||
|
|
Loading…
Reference in New Issue