summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-04-27 14:36:23 +0200
committerHans de Goede <hdegoede@redhat.com>2015-05-04 16:51:54 +0200
commita781c97aaa1712449968d41ae30dc673877058ab (patch)
tree3f2a1529a78ec770ac8b3760fe2ef4c2650e85d0 /drivers/usb
parent375de01702f4b0b1a27715ca1a18110d6dbfdebe (diff)
downloadu-boot-imx-a781c97aaa1712449968d41ae30dc673877058ab.zip
u-boot-imx-a781c97aaa1712449968d41ae30dc673877058ab.tar.gz
u-boot-imx-a781c97aaa1712449968d41ae30dc673877058ab.tar.bz2
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')
-rw-r--r--drivers/usb/host/ehci-sunxi.c5
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)));