libpayload/drivers/usb/xhci: Replace raw values with constants
BUG=none TEST=compiled on grunt and made sure USB still works in depthcharge Change-Id: I972f4604bb5ff3838cb15f323c5a579ad890ecf5 Signed-off-by: Raul E Rangel <rrangel@chromium.org> Reviewed-on: https://review.coreboot.org/27883 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
cc6dc90f30
commit
8346a44dd1
|
@ -304,10 +304,10 @@ xhci_pci_init (pcidev_t addr)
|
|||
u32 reg_addr;
|
||||
hci_t *controller;
|
||||
|
||||
reg_addr = pci_read_config32 (addr, 0x10) & ~0xf;
|
||||
if (pci_read_config32 (addr, 0x14) > 0) {
|
||||
reg_addr = pci_read_config32(addr, PCI_BASE_ADDRESS_0) &
|
||||
PCI_BASE_ADDRESS_MEM_MASK;
|
||||
if (pci_read_config32(addr, PCI_BASE_ADDRESS_1) > 0)
|
||||
fatal("We don't do 64bit addressing.\n");
|
||||
}
|
||||
|
||||
controller = xhci_init((unsigned long)reg_addr);
|
||||
if (controller) {
|
||||
|
|
Loading…
Reference in New Issue