Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b71313e1 authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Ben Skeggs
Browse files

drm/nv4c/vga: decode register is in a different place on nv4x igp's

parent fa8c9ac7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);