]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/usb/host/ehci-ixp4xx.c
doc: SPI: Add qspi test details on AM43xx
[karo-tx-uboot.git] / drivers / usb / host / ehci-ixp4xx.c
1 /*
2  * (C) Copyright 2008, Michael Trimarchi <trimarchimichael@yahoo.it>
3  *
4  * Author: Michael Trimarchi <trimarchimichael@yahoo.it>
5  * This code is based on ehci freescale driver
6  *
7  * SPDX-License-Identifier:     GPL-2.0+
8  */
9 #include <common.h>
10 #include <usb.h>
11
12 #include "ehci.h"
13 /*
14  * Create the appropriate control structures to manage
15  * a new EHCI host controller.
16  */
17 int ehci_hcd_init(int index, enum usb_init_type init,
18                 struct ehci_hccr **hccr, struct ehci_hcor **hcor)
19 {
20         *hccr = (struct ehci_hccr *)(0xcd000100);
21         *hcor = (struct ehci_hcor *)((uint32_t) *hccr
22                         + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
23
24         printf("IXP4XX init hccr %x and hcor %x hc_length %d\n",
25                 (uint32_t)*hccr, (uint32_t)*hcor,
26                 (uint32_t)HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
27         return 0;
28 }
29
30 /*
31  * Destroy the appropriate control structures corresponding
32  * the the EHCI host controller.
33  */
34 int ehci_hcd_stop(int index)
35 {
36         return 0;
37 }