drm/i915: Initialize panel timing registers if VBIOS did not
authorBryan Freed <bfreed@chromium.org>
Thu, 14 Oct 2010 08:14:51 +0000 (09:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Oct 2010 08:17:24 +0000 (09:17 +0100)
commit6d139a87b747aaebc969ac5f4eb8db766fcd9cbd
tree62e4a8aa1b01f0b3ba6e11b989be4d64c0057fae
parente60a0b107b3df072e23cb6d68510aa2615b059ce
drm/i915: Initialize panel timing registers if VBIOS did not

The time between start of the pixel clock and backlight enable is a basic
panel timing constraint.  If the Panel Power On/Off registers are found
to be 0, assume we are booting without VBIOS initialization and set these
registers to something reasonable.

Change-Id: Ibed6cc10d46bf52fd92e0beb25ae3525b5eef99d
Signed-off-by: Bryan Freed <bfreed@chromium.org>
[ickle: rearranged into a separate function to distinguish its role from
simply parsing the VBIOS tables.]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_bios.h