From 3387e4e770a37bc09289ffa59fa3c781d8970126 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Mon, 18 May 2015 13:13:48 +0200 Subject: [PATCH] gma/edid: Fix gma register access. 0x20 was incorrectly represented as 4 * 5 while in fact it's 4 * 8 Change-Id: I6053a3baa6de0da9f1d648009353bc1fe542f81f Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/10237 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- src/drivers/intel/gma/edid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/intel/gma/edid.c b/src/drivers/intel/gma/edid.c index 36d8813f00..e70156eb28 100644 --- a/src/drivers/intel/gma/edid.c +++ b/src/drivers/intel/gma/edid.c @@ -49,11 +49,11 @@ void intel_gmbus_read_edid(u8 *mmio, u8 bus, u8 slave, u8 *edid, u32 edid_size) write32(mmio + 4 * 0, bus); wait_rdy(mmio); /* Ensure index bits are disabled. */ - write32(mmio + 4 * 5, 0); + write32(mmio + 4 * 8, 0); write32(mmio + 4 * 1, 0x46000000 | (slave << 1)); wait_rdy(mmio); /* Ensure index bits are disabled. */ - write32(mmio + 4 * 5, 0); + write32(mmio + 4 * 8, 0); write32(mmio + 4 * 1, 0x4a000001 | (slave << 1) | (edid_size << 16)); for (i = 0; i < edid_size / 4; i++) {