aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801jx/usb_ehci.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-04-28 10:29:11 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-05-01 06:23:29 +0000
commitca4ff25290c099152ee9b2b53df6eb0d71ef0823 (patch)
tree2db94efb2d732c4f3c834eae81825c55e1d63d81 /src/southbridge/intel/i82801jx/usb_ehci.c
parentb9d2e228b63c898383f1f6e6bd5e02b018ff31af (diff)
sb/intel/i82801jx: Fix 16-bit read/write PCI_COMMAND register
Change-Id: If39cdfb21fec307141593f2482e014e146d4f1f2 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40795 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/southbridge/intel/i82801jx/usb_ehci.c')
-rw-r--r--src/southbridge/intel/i82801jx/usb_ehci.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/southbridge/intel/i82801jx/usb_ehci.c b/src/southbridge/intel/i82801jx/usb_ehci.c
index 03b314a10d..45737a535e 100644
--- a/src/southbridge/intel/i82801jx/usb_ehci.c
+++ b/src/southbridge/intel/i82801jx/usb_ehci.c
@@ -11,12 +11,8 @@
static void usb_ehci_init(struct device *dev)
{
- u32 reg32;
-
printk(BIOS_DEBUG, "EHCI: Setting up controller.. ");
- reg32 = pci_read_config32(dev, PCI_COMMAND);
- reg32 |= PCI_COMMAND_MASTER;
- pci_write_config32(dev, PCI_COMMAND, reg32);
+ pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
printk(BIOS_DEBUG, "done.\n");
}