Anton Kochkov (anton.kochkov@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1106
-gerrit
commit 09694b755d4ce7b621f38fc446dbb7fd76553c1c Author: Anton Kochkov anton.kochkov@gmail.com Date: Wed Jun 20 04:03:37 2012 +0400
libpayload: reg_base reading for USB EHCI driver
Added reading registers base address for USB EHCI driver in ehci_init() function.
Change-Id: I59443ca9823588d70822b4f14486caf217a5ac26 Signed-off-by: Anton Kochkov anton.kochkov@gmail.com --- payloads/libpayload/drivers/usb/ehci.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/payloads/libpayload/drivers/usb/ehci.c b/payloads/libpayload/drivers/usb/ehci.c index 1094c78..1cb1535 100644 --- a/payloads/libpayload/drivers/usb/ehci.c +++ b/payloads/libpayload/drivers/usb/ehci.c @@ -623,13 +623,14 @@ ehci_init (pcidev_t addr) controller->destroy_intr_queue = ehci_destroy_intr_queue; controller->poll_intr_queue = ehci_poll_intr_queue; controller->bus_address = addr; + controller->reg_base = pci_read_config32 (controller->bus_address, USBBASE); for (i = 0; i < 128; i++) { controller->devices[i] = 0; } init_device_entry (controller, 0);
- EHCI_INST(controller)->capabilities = phys_to_virt(pci_read_config32(addr, USBBASE)); - EHCI_INST(controller)->operation = (hc_op_t *)(phys_to_virt(pci_read_config32(addr, USBBASE)) + EHCI_INST(controller)->capabilities->caplength); + EHCI_INST(controller)->capabilities = phys_to_virt(controller->reg_base); + EHCI_INST(controller)->operation = (hc_op_t *)(phys_to_virt(controller->reg_base) + EHCI_INST(controller)->capabilities->caplength);
/* default value for frame length adjust */ pci_write_config8(addr, FLADJ, FLADJ_framelength(60000));