drm/kms: start adding command line interface using fb.
authorDave Airlie <airlied@linux.ie>
Wed, 23 Sep 2009 04:44:08 +0000 (14:44 +1000)
committerDave Airlie <airlied@linux.ie>
Fri, 25 Sep 2009 03:08:20 +0000 (13:08 +1000)
commitd50ba256b5f1478e15accfcfda9b72fd7a661364
tree7148b1294057a734ecdbc62b7df7ed0397adfeb4
parentf80330357284c908e1f67cc8b4d8e56a3e2f6fc6
drm/kms: start adding command line interface using fb.

[note this requires an fb patch posted to linux-fbdev-devel already]

This uses the normal video= command line option to control the kms
output setup at boot time. It is used to override the autodetection
done by kms.

video= normally takes a framebuffer as the first parameter, in kms
it will take a connector name, DVI-I-1, or LVDS-1 etc. If no output
connector is specified the mode string will apply to all connectors.

The mode specification used will match down the probed modes, and if
no mode is found it will add a CVT mode that matches.

video=1024x768 - all connectors match a 1024x768 mode or add a CVT on
video=VGA-1:1024x768, VGA-1 connector gets mode only.

The same strings as used in current fb modedb.c are used, except I've
added three more letters, e, D, d, e = enable, D = enable Digital,
d = disable, which allow a connector to be forced into a certain state.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/drm_modes.c
drivers/gpu/drm/i915/intel_fb.c
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_fb.c
include/drm/drm_crtc.h
include/drm/drm_fb_helper.h