From fa5c69ff85096ecbacc7457f077739d1969a1b16 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Mon, 27 Feb 2017 18:56:06 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/18600 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- payloads/libpayload/drivers/usb/ehci.c | 1 + payloads/libpayload/drivers/usb/ohci.c | 1 + 2 files changed, 2 insertions(+) (limited to 'payloads') 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; -- cgit v1.2.3