]>
Commit | Line | Data |
---|---|---|
a270d1e7 SR |
1 | /* |
2 | * (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering | |
3 | * | |
1a459660 | 4 | * SPDX-License-Identifier: GPL-2.0+ |
a270d1e7 SR |
5 | */ |
6 | ||
7 | #include <common.h> | |
8 | #include <usb.h> | |
9 | ||
2731b9a8 | 10 | #include "ehci.h" |
a270d1e7 SR |
11 | |
12 | int vct_ehci_hcd_init(u32 *hccr, u32 *hcor); | |
13 | ||
14 | /* | |
15 | * Create the appropriate control structures to manage | |
16 | * a new EHCI host controller. | |
17 | */ | |
676ae068 | 18 | int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor) |
a270d1e7 SR |
19 | { |
20 | int ret; | |
21 | u32 vct_hccr; | |
22 | u32 vct_hcor; | |
23 | ||
24 | /* | |
25 | * Init VCT specific stuff | |
26 | */ | |
27 | ret = vct_ehci_hcd_init(&vct_hccr, &vct_hcor); | |
28 | if (ret) | |
29 | return ret; | |
30 | ||
676ae068 LS |
31 | *hccr = (struct ehci_hccr *)vct_hccr; |
32 | *hcor = (struct ehci_hcor *)vct_hcor; | |
a270d1e7 SR |
33 | |
34 | return 0; | |
35 | } | |
36 | ||
37 | /* | |
38 | * Destroy the appropriate control structures corresponding | |
39 | * the the EHCI host controller. | |
40 | */ | |
676ae068 | 41 | int ehci_hcd_stop(int index) |
a270d1e7 SR |
42 | { |
43 | return 0; | |
44 | } |