drm/nouveau/core: allow vbios parsing without knowing chipset type
authorBen Skeggs <bskeggs@redhat.com>
Tue, 18 Nov 2014 00:51:19 +0000 (10:51 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:44:04 +0000 (15:44 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/device/base.c

index 9262f27904c86b730ce86175a18c8b56cad94cd2..137e0b0faeae0d1b76ad9e5359c2eef9b66e0642 100644 (file)
@@ -29,6 +29,7 @@
 #include <nvif/unpack.h>
 #include <nvif/class.h>
 
+#include <subdev/bios.h>
 #include <subdev/fb.h>
 #include <subdev/instmem.h>
 
@@ -432,6 +433,10 @@ nouveau_devobj_ctor(struct nouveau_object *parent,
                }
 
                nv_debug(device, "crystal freq: %dKHz\n", device->crystal);
+       } else
+       if ( (args->v0.disable & NV_DEVICE_V0_DISABLE_IDENTIFY)) {
+               device->cname = "NULL";
+               device->oclass[NVDEV_SUBDEV_VBIOS] = &nouveau_bios_oclass;
        }
 
        if (!(args->v0.disable & NV_DEVICE_V0_DISABLE_MMIO) &&