drm: add initial_config function to fb helper
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 19 Feb 2013 21:31:39 +0000 (13:31 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 Mar 2013 20:32:53 +0000 (21:32 +0100)
commit11e17a0873aba66b251e77ff246590b9390cdc68
tree2f409245edf3d4e102ac9977c95e438c5582f2dc
parent866d12b4ee5faefbc1a98b787ac4242a2f04b051
drm: add initial_config function to fb helper

Rather than building a config which may or may not work, let the driver
build an initial fb config.  This allows the driver to use the BIOS boot
configuration for example, displaying kernel messages and the initial fb
console on the same outputs the BIOS lit up at boot time.  If that
fails, the driver can still fall back the same way as the core.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: dri-devel@lists.freedesktop.org
Acked-by: Dave Airlie <airlied@gmail.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_fb_helper.h