drm/nouveau/gk20a: add LTC device
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 12 Aug 2014 22:16:52 +0000 (15:16 -0700)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Aug 2014 21:58:39 +0000 (07:58 +1000)
LTC device is now required for PGRAPH to work, add it.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/device/nve0.c

index 54ec53bc6252495b973499a1f089847674b1847b..cdf9147f32a1e80df5c5e58fa840ce311fa54819 100644 (file)
@@ -163,6 +163,7 @@ nve0_identify(struct nouveau_device *device)
                device->oclass[NVDEV_SUBDEV_BUS    ] =  nvc0_bus_oclass;
                device->oclass[NVDEV_SUBDEV_TIMER  ] = &gk20a_timer_oclass;
                device->oclass[NVDEV_SUBDEV_FB     ] =  gk20a_fb_oclass;
+               device->oclass[NVDEV_SUBDEV_LTC    ] =  gk104_ltc_oclass;
                device->oclass[NVDEV_SUBDEV_IBUS   ] = &gk20a_ibus_oclass;
                device->oclass[NVDEV_SUBDEV_INSTMEM] = nv50_instmem_oclass;
                device->oclass[NVDEV_SUBDEV_VM     ] = &nvc0_vmmgr_oclass;