]>
Commit | Line | Data |
---|---|---|
7b6e31eb MT |
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 | * | |
1a459660 | 7 | * SPDX-License-Identifier: GPL-2.0+ |
7b6e31eb MT |
8 | */ |
9 | #include <common.h> | |
10 | #include <usb.h> | |
2731b9a8 JCPV |
11 | |
12 | #include "ehci.h" | |
7b6e31eb MT |
13 | /* |
14 | * Create the appropriate control structures to manage | |
15 | * a new EHCI host controller. | |
16 | */ | |
676ae068 | 17 | int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor) |
7b6e31eb | 18 | { |
676ae068 LS |
19 | *hccr = (struct ehci_hccr *)(0xcd000100); |
20 | *hcor = (struct ehci_hcor *)((uint32_t) *hccr | |
21 | + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); | |
7b6e31eb MT |
22 | |
23 | printf("IXP4XX init hccr %x and hcor %x hc_length %d\n", | |
676ae068 LS |
24 | (uint32_t)*hccr, (uint32_t)*hcor, |
25 | (uint32_t)HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); | |
7b6e31eb MT |
26 | return 0; |
27 | } | |
28 | ||
29 | /* | |
30 | * Destroy the appropriate control structures corresponding | |
31 | * the the EHCI host controller. | |
32 | */ | |
676ae068 | 33 | int ehci_hcd_stop(int index) |
7b6e31eb MT |
34 | { |
35 | return 0; | |
36 | } |