UPSTREAM: usb: host: ehci-generic: convert to livetree

Update the generic EHCI driver to support a live tree.

Change-Id: I07159bf921cda3d42247d2134a4f5a6bd7d65bb5
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 6e652e3a7d15b896fd82b717c6eca74b70a33b7a)
This commit is contained in:
Philipp Tomsich 2017-09-12 17:32:28 +02:00 committed by Kever Yang
parent c32504a86a
commit 97ff91fa1d
1 changed files with 1 additions and 1 deletions

View File

@ -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 + hcor = (struct ehci_hcor *)((uintptr_t)hccr +
HC_LENGTH(ehci_readl(&hccr->cr_capbase))); HC_LENGTH(ehci_readl(&hccr->cr_capbase)));