usb: host: ehci-generic: convert to livetree
Update the generic EHCI driver to support a live tree. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
a9d3037a8e
commit
6e652e3a7d
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ static int ehci_usb_probe(struct udevice *dev)
|
|||
}
|
||||
}
|
||||
|
||||
hccr = map_physmem(devfdt_get_addr(dev), 0x100, MAP_NOCACHE);
|
||||
hccr = map_physmem(dev_read_addr(dev), 0x100, MAP_NOCACHE);
|
||||
hcor = (struct ehci_hcor *)((uintptr_t)hccr +
|
||||
HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
|
||||
|
||||
|
|
Loading…
Reference in a new issue