1 // SPDX-License-Identifier: GPL-2.0+
4 * eInfochips Ltd. <www.einfochips.com>
5 * Written-by: Ajay Bhargav <contact@8051projects.net>
7 * This driver is based on Kirkwood echi driver
9 * Marvell Semiconductor <www.marvell.com>
10 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
17 #include <asm/arch/cpu.h>
18 #include <asm/arch/armada100.h>
19 #include <asm/arch/utmi-armada100.h>
22 * EHCI host controller init
24 int ehci_hcd_init(int index, enum usb_init_type init,
25 struct ehci_hccr **hccr, struct ehci_hcor **hcor)
30 *hccr = (struct ehci_hccr *)(ARMD1_USB_HOST_BASE + 0x100);
31 *hcor = (struct ehci_hcor *)((uint32_t) *hccr
32 + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
34 debug("armada100-ehci: init hccr %x and hcor %x hc_length %d\n",
35 (uint32_t)*hccr, (uint32_t)*hcor,
36 (uint32_t)HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
42 * EHCI host controller stop
44 int ehci_hcd_stop(int index)