3 * Armando Visconti, ST Micoelectronics, <armando.visconti@st.com>.
6 * Marvell Semiconductor <www.marvell.com>
7 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
9 * See file CREDITS for list of people who contributed to this
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of
15 * the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
32 #include <asm/arch/hardware.h>
36 * Create the appropriate control structures to manage
37 * a new EHCI host controller.
39 int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)
41 *hccr = (struct ehci_hccr *)(CONFIG_SYS_UHC0_EHCI_BASE + 0x100);
42 *hcor = (struct ehci_hcor *)((uint32_t)*hccr
43 + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
45 debug("SPEAr-ehci: init hccr %x and hcor %x hc_length %d\n",
46 (uint32_t)*hccr, (uint32_t)*hcor,
47 (uint32_t)HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
53 * Destroy the appropriate control structures corresponding
54 * the the EHCI host controller.
56 int ehci_hcd_stop(int index)