diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2017-08-06 15:56:30 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2017-08-07 14:34:31 +0000 |
commit | 8da22868851e752ce7c633551f74ef3ef8bf4b6c (patch) | |
tree | dcfefd881707255337e0a40e068bc926d386704a /src/northbridge/intel/i945/gma.c | |
parent | 6aea6f7a6b524d86be4fbdaf434aeda6d9f721a9 (diff) | |
download | coreboot-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/i945/gma.c')
-rw-r--r-- | src/northbridge/intel/i945/gma.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/northbridge/intel/i945/gma.c b/src/northbridge/intel/i945/gma.c index cba28601d6..37f73ed0eb 100644 --- a/src/northbridge/intel/i945/gma.c +++ b/src/northbridge/intel/i945/gma.c @@ -104,8 +104,8 @@ static int intel_gma_init_lvds(struct northbridge_intel_i945_config *conf, "i915lightup: graphics %p mmio %p addrport %04x physbase %08x\n", (void *)pgfx, mmiobase, piobase, pphysbase); - intel_gmbus_read_edid(mmiobase + GMBUS0, 3, 0x50, edid_data, - sizeof(edid_data)); + intel_gmbus_read_edid(mmiobase + GMBUS0, GMBUS_PORT_PANEL, 0x50, + edid_data, sizeof(edid_data)); decode_edid(edid_data, sizeof(edid_data), &edid); mode = &edid.mode; @@ -663,7 +663,8 @@ static void gma_func0_init(struct device *dev) /* probe if VGA is connected and always run */ /* VGA init if no LVDS is connected */ - if (!probe_edid(mmiobase, 3) || probe_edid(mmiobase, 2)) + if (!probe_edid(mmiobase, GMBUS_PORT_PANEL) || + probe_edid(mmiobase, GMBUS_PORT_VGADDC)) err = intel_gma_init_vga(conf, pci_read_config32(dev, 0x5c) & ~0xf, iobase, mmiobase, graphics_base); |