summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-02-25 12:32:06 +0100
committerMartin Roth <martinroth@google.com>2018-10-15 15:42:18 +0000
commitac4819de705cc4f3e3421ef9ffeef3b7f08dd9cf (patch)
tree8acd5d7fe3f0859c6e433697e6aa8f7f26d03324 /payloads/libpayload
parent0f79a92bb68c0f8d289364361cf2b835b062743e (diff)
downloadcoreboot-ac4819de705cc4f3e3421ef9ffeef3b7f08dd9cf.tar.xz
libpayload: Always set pciaddr
For debugging purposes always set the pciaddr attribute. Tested on Lenovo T500. Change-Id: I83a0e7f7196ed251fa0becc4e56bef3ca68f20f4 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/18599 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/drivers/usb/ehci.c3
-rw-r--r--payloads/libpayload/drivers/usb/uhci.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/payloads/libpayload/drivers/usb/ehci.c b/payloads/libpayload/drivers/usb/ehci.c
index 2df74adbd7..ee8a1fad5c 100644
--- a/payloads/libpayload/drivers/usb/ehci.c
+++ b/payloads/libpayload/drivers/usb/ehci.c
@@ -867,6 +867,9 @@ ehci_pci_init (pcidev_t addr)
controller = ehci_init((unsigned long)reg_base);
+ if (controller)
+ controller->pcidev = addr;
+
return controller;
}
#endif
diff --git a/payloads/libpayload/drivers/usb/uhci.c b/payloads/libpayload/drivers/usb/uhci.c
index cdba3de101..70071eb595 100644
--- a/payloads/libpayload/drivers/usb/uhci.c
+++ b/payloads/libpayload/drivers/usb/uhci.c
@@ -153,6 +153,7 @@ uhci_pci_init (pcidev_t addr)
u16 reg16;
hci_t *controller = new_controller ();
+ controller->pcidev = addr;
controller->instance = xzalloc(sizeof (uhci_t));
controller->type = UHCI;
controller->start = uhci_start;