From 09106f75f1c196d97fbc5fa998bfe1e602091266 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 6 Mar 2022 15:36:00 +0100 Subject: sb/intel/i82801dx/pci.c: Use pci_or_config16() and macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Elyes Haouas Change-Id: I658fa9cee4517b9f68102b74949d32d7ab0309f8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62618 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/southbridge/intel/i82801dx/pci.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/southbridge/intel/i82801dx/pci.c') diff --git a/src/southbridge/intel/i82801dx/pci.c b/src/southbridge/intel/i82801dx/pci.c index 2cc1b9d478..77437056b9 100644 --- a/src/southbridge/intel/i82801dx/pci.c +++ b/src/southbridge/intel/i82801dx/pci.c @@ -8,13 +8,8 @@ static void pci_init(struct device *dev) { - /* Enable pci error detecting */ - uint32_t dword; /* System error enable */ - dword = pci_read_config32(dev, 0x04); - dword |= (1 << 8); /* SERR# Enable */ - dword |= (1 << 6); /* Parity Error Response */ - pci_write_config32(dev, 0x04, dword); + pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_SERR | PCI_COMMAND_PARITY); } static struct device_operations pci_ops = { -- cgit v1.2.3