summaryrefslogtreecommitdiff
path: root/src/northbridge/intel/nehalem
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2017-08-06 15:56:30 +0200
committerNico Huber <nico.h@gmx.de>2017-08-07 14:34:31 +0000
commit8da22868851e752ce7c633551f74ef3ef8bf4b6c (patch)
treedcfefd881707255337e0a40e068bc926d386704a /src/northbridge/intel/nehalem
parent6aea6f7a6b524d86be4fbdaf434aeda6d9f721a9 (diff)
downloadcoreboot-8da22868851e752ce7c633551f74ef3ef8bf4b6c.tar.xz
nb/intel/*/gma.c: Use macros for GMBUS numbers
Change-Id: I885b6bd9f5be6b4e3696a530016123a3e81c4b10 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/20889 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/northbridge/intel/nehalem')
-rw-r--r--src/northbridge/intel/nehalem/gma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/intel/nehalem/gma.c b/src/northbridge/intel/nehalem/gma.c
index 0607f34fb1..56d85230c9 100644
--- a/src/northbridge/intel/nehalem/gma.c
+++ b/src/northbridge/intel/nehalem/gma.c
@@ -712,8 +712,8 @@ static void intel_gma_init(const struct northbridge_intel_nehalem_config *info,
power_port(mmio);
- intel_gmbus_read_edid(mmio + PCH_GMBUS0, 3, 0x50, edid_data,
- sizeof(edid_data));
+ intel_gmbus_read_edid(mmio + PCH_GMBUS0, GMBUS_PORT_PANEL, 0x50,
+ edid_data, sizeof(edid_data));
intel_gmbus_stop(mmio + PCH_GMBUS0);
decode_edid(edid_data,
sizeof(edid_data), &edid);