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) {
|
1126 | 1126 | pll |= DISPLAY_PLL_POST1_DIVIDE_2; |
1127 | 1127 | } |
1128 | 1128 | |
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); |
1130 | 1132 | read32(INTEL_DISPLAY_A_PLL); |
1131 | 1133 | spin(150); |
1132 | 1134 | write32(INTEL_DISPLAY_A_PLL, pll); |