diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-04-27 12:36:23 (GMT) |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-05-04 14:51:54 (GMT) |
commit | a781c97aaa1712449968d41ae30dc673877058ab (patch) | |
tree | 3f2a1529a78ec770ac8b3760fe2ef4c2650e85d0 /drivers/usb/host/ehci-sunxi.c | |
parent | 375de01702f4b0b1a27715ca1a18110d6dbfdebe (diff) | |
download | u-boot-a781c97aaa1712449968d41ae30dc673877058ab.tar.xz |
sunxi: usb: Remove sunxi_usbc_get_io_base function
This is the only function left in sunxi/usbc.c which is not phy related,
so remove it.
This is a preparation patch for turning the usbc.c code into a proper
usb phy driver.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'drivers/usb/host/ehci-sunxi.c')
-rw-r--r-- | drivers/usb/host/ehci-sunxi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-sunxi.c b/drivers/usb/host/ehci-sunxi.c index 41e4d7f..5de20f9 100644 --- a/drivers/usb/host/ehci-sunxi.c +++ b/drivers/usb/host/ehci-sunxi.c @@ -35,7 +35,10 @@ int ehci_hcd_init(int index, enum usb_init_type init, struct ehci_hccr **hccr, sunxi_usbc_enable(index + 1); sunxi_usbc_vbus_enable(index + 1); - *hccr = sunxi_usbc_get_io_base(index + 1); + if (index == 0) + *hccr = (void *)SUNXI_USB1_BASE; + else + *hccr = (void *)SUNXI_USB2_BASE; *hcor = (struct ehci_hcor *)((uint32_t) *hccr + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); |