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>
This commit is contained in:
parent
5797b2eb05
commit
fa5c69ff85
|
@ -776,6 +776,7 @@ ehci_init (unsigned long physical_bar)
|
||||||
int i;
|
int i;
|
||||||
hci_t *controller = new_controller ();
|
hci_t *controller = new_controller ();
|
||||||
controller->instance = xzalloc(sizeof (ehci_t));
|
controller->instance = xzalloc(sizeof (ehci_t));
|
||||||
|
controller->reg_base = (uintptr_t)physical_bar;
|
||||||
controller->type = EHCI;
|
controller->type = EHCI;
|
||||||
controller->start = ehci_start;
|
controller->start = ehci_start;
|
||||||
controller->stop = ehci_stop;
|
controller->stop = ehci_stop;
|
||||||
|
|
|
@ -173,6 +173,7 @@ ohci_init (unsigned long physical_bar)
|
||||||
|
|
||||||
hci_t *controller = new_controller ();
|
hci_t *controller = new_controller ();
|
||||||
controller->instance = xzalloc(sizeof (ohci_t));
|
controller->instance = xzalloc(sizeof (ohci_t));
|
||||||
|
controller->reg_base = (uintptr_t)physical_bar;
|
||||||
controller->type = OHCI;
|
controller->type = OHCI;
|
||||||
controller->start = ohci_start;
|
controller->start = ohci_start;
|
||||||
controller->stop = ohci_stop;
|
controller->stop = ohci_stop;
|
||||||
|
|
Loading…
Reference in New Issue