From 8da22868851e752ce7c633551f74ef3ef8bf4b6c Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Sun, 6 Aug 2017 15:56:30 +0200 Subject: nb/intel/*/gma.c: Use macros for GMBUS numbers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I885b6bd9f5be6b4e3696a530016123a3e81c4b10 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/20889 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Nico Huber --- src/northbridge/intel/gm45/gma.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/northbridge/intel/gm45') diff --git a/src/northbridge/intel/gm45/gma.c b/src/northbridge/intel/gm45/gma.c index 24046712b4..00b3fa0a2b 100644 --- a/src/northbridge/intel/gm45/gma.c +++ b/src/northbridge/intel/gm45/gma.c @@ -588,8 +588,8 @@ static void gma_ngi(struct device *const dev, struct edid *edid_lvds) mmio = res2mmio(gtt_res, 0, 0); printk(BIOS_DEBUG, "VGA EDID\n"); - intel_gmbus_read_edid(mmio + GMBUS0, 2, 0x50, edid_data_vga, - sizeof(edid_data_vga)); + intel_gmbus_read_edid(mmio + GMBUS0, GMBUS_PORT_VGADDC, 0x50, + edid_data_vga, sizeof(edid_data_vga)); intel_gmbus_stop(mmio + GMBUS0); vga_edid_status = decode_edid(edid_data_vga, sizeof(edid_data_vga), &edid_vga); @@ -748,8 +748,8 @@ static void gma_func0_init(struct device *dev) } printk(BIOS_DEBUG, "LVDS EDID\n"); - intel_gmbus_read_edid(mmio + GMBUS0, 3, 0x50, edid_data_lvds, - sizeof(edid_data_lvds)); + intel_gmbus_read_edid(mmio + GMBUS0, GMBUS_PORT_PANEL, 0x50, + edid_data_lvds, sizeof(edid_data_lvds)); intel_gmbus_stop(mmio + GMBUS0); decode_edid(edid_data_lvds, sizeof(edid_data_lvds), &edid_lvds); -- cgit v1.2.3