From 26766fd85d87dcd328ca55c8a51a43222eca59f1 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 8 Jun 2020 12:38:19 +0200 Subject: nb/intel/pineview: Use PCI bitwise ops Tested with BUILD_TIMELESS=1, Foxconn D41S does not change. Change-Id: Idd6a11e95669f0a8fe9bd52359a9822b524c878c Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/42192 Reviewed-by: HAOUAS Elyes Tested-by: build bot (Jenkins) --- src/northbridge/intel/pineview/early_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/northbridge/intel/pineview/early_init.c') diff --git a/src/northbridge/intel/pineview/early_init.c b/src/northbridge/intel/pineview/early_init.c index 5b9ef4d3fd..42a68d8c02 100644 --- a/src/northbridge/intel/pineview/early_init.c +++ b/src/northbridge/intel/pineview/early_init.c @@ -62,8 +62,8 @@ static void early_graphics_setup(void) pci_write_config16(GMCH_IGD, 0xcc, reg16); - pci_write_config8(GMCH_IGD, 0x62, pci_read_config8(GMCH_IGD, 0x62) & ~0x3); - pci_write_config8(GMCH_IGD, 0x62, pci_read_config8(GMCH_IGD, 0x62) | 2); + pci_and_config8(GMCH_IGD, 0x62, ~0x3); + pci_or_config8(GMCH_IGD, 0x62, 2); if (config->use_crt) { /* Enable VGA */ -- cgit v1.2.3