summaryrefslogtreecommitdiff
path: root/nvkm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-11-18 10:51:19 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-12-02 15:37:21 +1000
commit98924ea828b7f63e4934a1d15846dec28caefa09 (patch)
tree7d60ca55a6a08a68eb41fb31e9e8cbfb72fe2efc /nvkm
parent8eabc27d99f560c54c40fd06da4abffd245d67a3 (diff)
downloadnouveau-98924ea828b7f63e4934a1d15846dec28caefa09.tar.gz
core: allow vbios parsing without knowing chipset type
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm')
-rw-r--r--nvkm/engine/device/base.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nvkm/engine/device/base.c b/nvkm/engine/device/base.c
index 9262f2790..137e0b0fa 100644
--- a/nvkm/engine/device/base.c
+++ b/nvkm/engine/device/base.c
@@ -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) &&