[coreboot-gerrit] New patch to review for coreboot: nb/intel/gm45: Drop unnecessary panel power handling

Nico Huber (nico.h@gmx.de) gerrit at coreboot.org
Sun Jan 10 02:01:02 CET 2016


Nico Huber (nico.h at gmx.de) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/12884

-gerrit

commit 85420674b6961e125b8bc4cdcc7e49a67a4a3558
Author: Nico Huber <nico.h at gmx.de>
Date:   Sat Jan 9 22:58:44 2016 +0100

    nb/intel/gm45: Drop unnecessary panel power handling
    
    Skip everything but the final setting of PP_CONTROL, i.e. triggering
    the power up. The settings with PANEL_UNLOCK_REGS are useless as no
    lockable registers were touched in between. Also the loop waiting for
    the panel power up to finish was a no-op as the registers with the
    power timings were never filled (see follow-up commits).
    
    Change-Id: Ife27dcafdf197b2246c4e69f2bf7a3a6765d1d82
    Signed-off-by: Nico Huber <nico.h at gmx.de>
---
 src/northbridge/intel/gm45/gma.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/northbridge/intel/gm45/gma.c b/src/northbridge/intel/gm45/gma.c
index d5a133b..2824cf7 100644
--- a/src/northbridge/intel/gm45/gma.c
+++ b/src/northbridge/intel/gm45/gma.c
@@ -397,21 +397,6 @@ static void intel_gma_init(const struct northbridge_intel_gm45_config *info,
 		   | LVDS_CLOCK_BOTH_POWERUP_ALL : 0)
 		| LVDS_BORDER_ENABLE | LVDS_CLOCK_A_POWERUP_ALL);
 
-	write32(mmio + PP_CONTROL, PANEL_UNLOCK_REGS | PANEL_POWER_OFF);
-	write32(mmio + PP_CONTROL, PANEL_UNLOCK_REGS | PANEL_POWER_RESET);
-	mdelay(1);
-	write32(mmio + PP_CONTROL, PANEL_UNLOCK_REGS
-		| PANEL_POWER_ON | PANEL_POWER_RESET);
-
-	printk (BIOS_DEBUG, "waiting for panel powerup\n");
-	while (1) {
-		u32 reg32;
-		reg32 = read32(mmio + PP_STATUS);
-		if (((reg32 >> 28) & 3) == 0)
-			break;
-	}
-	printk (BIOS_DEBUG, "panel powered up\n");
-
 	write32(mmio + PP_CONTROL, PANEL_POWER_ON | PANEL_POWER_RESET);
 
 	/* Enable screen memory.  */



More information about the coreboot-gerrit mailing list