3 * Armando Visconti, ST Micoelectronics, <armando.visconti@st.com>.
6 * Marvell Semiconductor <www.marvell.com>
7 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
9 * SPDX-License-Identifier: GPL-2.0+
16 #include <asm/arch/hardware.h>
20 * Create the appropriate control structures to manage
21 * a new EHCI host controller.
23 int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)
25 *hccr = (struct ehci_hccr *)(CONFIG_SYS_UHC0_EHCI_BASE + 0x100);
26 *hcor = (struct ehci_hcor *)((uint32_t)*hccr
27 + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
29 debug("SPEAr-ehci: init hccr %x and hcor %x hc_length %d\n",
30 (uint32_t)*hccr, (uint32_t)*hcor,
31 (uint32_t)HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
37 * Destroy the appropriate control structures corresponding
38 * the the EHCI host controller.
40 int ehci_hcd_stop(int index)