* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38350 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-08-25 10:04:01 +00:00
parent 0405fd3b15
commit d401ca7b98

View File

@ -664,21 +664,18 @@ if (first) {
write32(INTEL_VGA_DISPLAY_CONTROL, VGA_DISPLAY_DISABLED);
read32(INTEL_VGA_DISPLAY_CONTROL);
if (gInfo->shared_info->device_type.InGroup(INTEL_TYPE_85x)) {
}
if ((gInfo->head_mode & HEAD_MODE_B_DIGITAL) != 0) {
pll_divisors divisors;
compute_pll_divisors(target, divisors, true);
uint32 dpll = DISPLAY_PLL_NO_VGA_CONTROL;
uint32 dpll = DISPLAY_PLL_NO_VGA_CONTROL | DISPLAY_PLL_ENABLED;
if (gInfo->shared_info->device_type.InFamily(INTEL_TYPE_9xx)) {
dpll |= LVDS_PLL_MODE_LVDS;
// DPLL mode LVDS for i915+
}
// compute bitmask from p1 value
dpll |= (1 << (divisors.post1 - 1)) << 16;
dpll |= (1 << (divisors.post1 - 1)) << DISPLAY_PLL_POST1_DIVISOR_SHIFT;
switch (divisors.post2) {
case 5:
case 7:
@ -686,10 +683,6 @@ if (first) {
break;
}
dpll |= (1 << (divisors.post1 - 1)) << DISPLAY_PLL_POST1_DIVISOR_SHIFT;
dpll |= DISPLAY_PLL_ENABLED;
write32(INTEL_PANEL_FIT_CONTROL, 0);
if ((dpll & DISPLAY_PLL_ENABLED) != 0) {
@ -779,7 +772,7 @@ if (first) {
read32(INTEL_DISPLAY_B_PIPE_CONTROL);
}
if (gInfo->head_mode & HEAD_MODE_A_ANALOG) {
if ((gInfo->head_mode & HEAD_MODE_A_ANALOG) != 0) {
pll_divisors divisors;
compute_pll_divisors(target, divisors,false);