summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-02-27 18:56:06 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2018-10-23 06:24:47 +0000
commitfa5c69ff85096ecbacc7457f077739d1969a1b16 (patch)
treefffa74e70b338a473dfe603d64f300177d1f9482 /payloads/libpayload
parent5797b2eb05ec46d877a2ae6b5e0c517ae54a6fe8 (diff)
downloadcoreboot-fa5c69ff85096ecbacc7457f077739d1969a1b16.tar.xz
libpayload: Fill reg_base for debugging purposes
Fill reg_base with physical register base address. Tested on Lenovo T500. Change-Id: If42135c8e10b70d5ac9626521abd9cca3cf40053 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/18600 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.c1
-rw-r--r--payloads/libpayload/drivers/usb/ohci.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/payloads/libpayload/drivers/usb/ehci.c b/payloads/libpayload/drivers/usb/ehci.c
index ee8a1fad5c..eb59d979a5 100644
--- a/payloads/libpayload/drivers/usb/ehci.c
+++ b/payloads/libpayload/drivers/usb/ehci.c
@@ -776,6 +776,7 @@ ehci_init (unsigned long physical_bar)
int i;
hci_t *controller = new_controller ();
controller->instance = xzalloc(sizeof (ehci_t));
+ controller->reg_base = (uintptr_t)physical_bar;
controller->type = EHCI;
controller->start = ehci_start;
controller->stop = ehci_stop;
diff --git a/payloads/libpayload/drivers/usb/ohci.c b/payloads/libpayload/drivers/usb/ohci.c
index 0dfda17456..dcf7169f6a 100644
--- a/payloads/libpayload/drivers/usb/ohci.c
+++ b/payloads/libpayload/drivers/usb/ohci.c
@@ -173,6 +173,7 @@ ohci_init (unsigned long physical_bar)
hci_t *controller = new_controller ();
controller->instance = xzalloc(sizeof (ohci_t));
+ controller->reg_base = (uintptr_t)physical_bar;
controller->type = OHCI;
controller->start = ohci_start;
controller->stop = ohci_stop;