Ticket #10271: 0001-Allow-DPLL-warmup-for-VGA-output.patch

File 0001-Allow-DPLL-warmup-for-VGA-output.patch, 978 bytes (added by gordonjcp, 5 years ago)

Fixes 1680x1050 (for me) on VGA output. Not well-tested.

  • src/add-ons/accelerants/intel_extreme/mode.cpp

    From 61ad8cf03b549219fec1ce82b4f90a99ce957f9b Mon Sep 17 00:00:00 2001
    From: Gordon JC Pearce <gordonjcp@gjcp.net>
    Date: Wed, 22 Jan 2014 17:46:46 +0000
    Subject: [PATCH] Allow DPLL warmup for VGA output
    
    ---
     src/add-ons/accelerants/intel_extreme/mode.cpp | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/src/add-ons/accelerants/intel_extreme/mode.cpp b/src/add-ons/accelerants/intel_extreme/mode.cpp
    index 130a56c..6fbd2c9 100644
    a b if (first) { 
    11261126                pll |= DISPLAY_PLL_POST1_DIVIDE_2;
    11271127        }
    11281128
    1129         write32(INTEL_DISPLAY_A_PLL, pll);
     1129        // Programmer's Ref says we must allow the DPLL to "warm up" before starting the plane
     1130        // so mask its bit, wait, enable its bit
     1131        write32(INTEL_DISPLAY_A_PLL, pll & ~DISPLAY_PLL_NO_VGA_CONTROL);
    11301132        read32(INTEL_DISPLAY_A_PLL);
    11311133        spin(150);
    11321134        write32(INTEL_DISPLAY_A_PLL, pll);