Commit 63718a07 authored by Ben Skeggs's avatar Ben Skeggs

drm/nvd0/disp: enable support for older display classes

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 47057302
...@@ -1896,6 +1896,11 @@ nvd0_display_create(struct drm_device *dev) ...@@ -1896,6 +1896,11 @@ nvd0_display_create(struct drm_device *dev)
static const u16 oclass[] = { static const u16 oclass[] = {
NVE0_DISP_CLASS, NVE0_DISP_CLASS,
NVD0_DISP_CLASS, NVD0_DISP_CLASS,
NVA3_DISP_CLASS,
NV94_DISP_CLASS,
NVA0_DISP_CLASS,
NV84_DISP_CLASS,
NV50_DISP_CLASS,
}; };
struct nouveau_device *device = nouveau_dev(dev); struct nouveau_device *device = nouveau_dev(dev);
struct nouveau_drm *drm = nouveau_drm(dev); struct nouveau_drm *drm = nouveau_drm(dev);
...@@ -1949,7 +1954,11 @@ nvd0_display_create(struct drm_device *dev) ...@@ -1949,7 +1954,11 @@ nvd0_display_create(struct drm_device *dev)
goto out; goto out;
/* create crtc objects to represent the hw heads */ /* create crtc objects to represent the hw heads */
crtcs = nv_rd32(device, 0x022448); if (nv_mclass(disp->core) >= NVD0_DISP_CLASS)
crtcs = nv_rd32(device, 0x022448);
else
crtcs = 2;
for (i = 0; i < crtcs; i++) { for (i = 0; i < crtcs; i++) {
ret = nvd0_crtc_create(dev, disp->core, i); ret = nvd0_crtc_create(dev, disp->core, i);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment