<div>The time between start of the pixel clock and backlight enable is a basic</div><div>panel timing constraint. If the Panel Power On/Off registers are found</div><div>to be 0, assume we are booting without VBIOS initialization and set these</div>
<div>registers to something reasonable.</div><div><br></div><div>Change-Id: Ibed6cc10d46bf52fd92e0beb25ae3525b5eef99d</div><div>Signed-off-by: Bryan Freed <<a href="mailto:bfreed@chromium.org">bfreed@chromium.org</a>></div>
<div>---</div><div> drivers/gpu/drm/i915/intel_bios.c | 9 +++++++++</div><div> 1 files changed, 9 insertions(+), 0 deletions(-)</div><div><br></div><div>diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c</div>
<div>index ad030ff..943bbad 100644</div><div>--- a/drivers/gpu/drm/i915/intel_bios.c</div><div>+++ b/drivers/gpu/drm/i915/intel_bios.c</div><div>@@ -505,6 +505,15 @@ init_vbt_defaults(struct drm_i915_private *dev_priv)</div>
<div> <span class="Apple-tab-span" style="white-space:pre"> </span>/* general features */</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>dev_priv->int_tv_support = 1;</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>dev_priv->int_crt_support = 1;</div>
<div>+</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>/* Set the Panel Power On/Off timings if uninitialized. */</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>if ((I915_READ(PP_ON_DELAYS) == 0) && (I915_READ(PP_OFF_DELAYS) == 0)) {</div>
<div>+<span class="Apple-tab-span" style="white-space:pre"> </span>/* Set T2 to 40ms and T5 to 200ms */</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>I915_WRITE(PP_ON_DELAYS, 0x019007d0);</div>
<div>+</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>/* Set T3 to 35ms and Tx to 200ms */</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>I915_WRITE(PP_OFF_DELAYS, 0x015e07d0);</div>
<div>+<span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div> }</div><div> </div><div> /**</div><div>-- </div><div>1.7.1</div><div><br></div>