sb/intel/i82801dx/pci.c: Use pci_or_config16() and macros

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Change-Id: I658fa9cee4517b9f68102b74949d32d7ab0309f8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62618
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Elyes Haouas 2022-03-06 15:36:00 +01:00 committed by Felix Held
parent 9f15a6c031
commit 09106f75f1
1 changed files with 1 additions and 6 deletions

View File

@ -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 = {