Stefan Roese | a270d1e | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | a270d1e | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <usb.h> |
| 9 | |
Jean-Christophe PLAGNIOL-VILLARD | 2731b9a | 2009-04-03 12:46:58 +0200 | [diff] [blame] | 10 | #include "ehci.h" |
Stefan Roese | a270d1e | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 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 | */ |
Troy Kisky | 127efc4 | 2013-10-10 15:27:57 -0700 | [diff] [blame] | 18 | int ehci_hcd_init(int index, enum usb_init_type init, |
| 19 | struct ehci_hccr **hccr, struct ehci_hcor **hcor) |
Stefan Roese | a270d1e | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 20 | { |
| 21 | int ret; |
| 22 | u32 vct_hccr; |
| 23 | u32 vct_hcor; |
| 24 | |
| 25 | /* |
| 26 | * Init VCT specific stuff |
| 27 | */ |
| 28 | ret = vct_ehci_hcd_init(&vct_hccr, &vct_hcor); |
| 29 | if (ret) |
| 30 | return ret; |
| 31 | |
Lucas Stach | 676ae06 | 2012-09-26 00:14:35 +0200 | [diff] [blame] | 32 | *hccr = (struct ehci_hccr *)vct_hccr; |
| 33 | *hcor = (struct ehci_hcor *)vct_hcor; |
Stefan Roese | a270d1e | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 34 | |
| 35 | return 0; |
| 36 | } |
| 37 | |
| 38 | /* |
| 39 | * Destroy the appropriate control structures corresponding |
| 40 | * the the EHCI host controller. |
| 41 | */ |
Lucas Stach | 676ae06 | 2012-09-26 00:14:35 +0200 | [diff] [blame] | 42 | int ehci_hcd_stop(int index) |
Stefan Roese | a270d1e | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 43 | { |
| 44 | return 0; |
| 45 | } |