summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-09-12 15:32:28 (GMT)
committerMarek Vasut <marek.vasut+renesas@gmail.com>2017-09-27 10:12:23 (GMT)
commit6e652e3a7d15b896fd82b717c6eca74b70a33b7a (patch)
tree9b8a45f729f815d7af75b9f5a58fd165c035a044 /drivers/usb
parenta9d3037a8e4f045434184623eadbe86fa3844b28 (diff)
downloadu-boot-6e652e3a7d15b896fd82b717c6eca74b70a33b7a.tar.xz
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c
index 03f8d32..18e1e0e 100644
--- a/drivers/usb/host/ehci-generic.c
+++ b/drivers/usb/host/ehci-generic.c
@@ -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)));