summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_state.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-07-04 03:14:05 (GMT)
committerBen Skeggs <bskeggs@redhat.com>2011-09-20 06:05:16 (GMT)
commit03bc9675d358ded9db07ba966f2f3f3c2fba2a9c (patch)
tree1afed55ee494fd0e25a00b334304da72f7df305d /drivers/gpu/drm/nouveau/nouveau_state.c
parent1575b3646c1c2141cfb68f7581c50d8bd19f17ac (diff)
downloadlinux-fsl-qoriq-03bc9675d358ded9db07ba966f2f3f3c2fba2a9c.tar.xz
drm/nouveau: allow modeset module option to select 'headless mode'
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_state.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_state.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index d457022..d3b0261 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -431,6 +431,15 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
return 1;
}
+ /* headless mode */
+ if (nouveau_modeset == 2) {
+ engine->display.early_init = nouveau_stub_init;
+ engine->display.late_takedown = nouveau_stub_takedown;
+ engine->display.create = nouveau_stub_init;
+ engine->display.init = nouveau_stub_init;
+ engine->display.destroy = nouveau_stub_takedown;
+ }
+
return 0;
}