Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License as |
| 6 | * published by the Free Software Foundation; either version 2 of |
| 7 | * the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 | * MA 02111-1307 USA |
| 18 | */ |
| 19 | |
| 20 | #include <common.h> |
| 21 | #include <usb.h> |
| 22 | |
Jean-Christophe PLAGNIOL-VILLARD | 8f6bcf4 | 2009-04-03 12:46:58 +0200 | [diff] [blame] | 23 | #include "ehci.h" |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 24 | |
| 25 | int vct_ehci_hcd_init(u32 *hccr, u32 *hcor); |
| 26 | |
| 27 | /* |
| 28 | * Create the appropriate control structures to manage |
| 29 | * a new EHCI host controller. |
| 30 | */ |
Lucas Stach | 3494a4c | 2012-09-26 00:14:35 +0200 | [diff] [blame] | 31 | int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor) |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 32 | { |
| 33 | int ret; |
| 34 | u32 vct_hccr; |
| 35 | u32 vct_hcor; |
| 36 | |
| 37 | /* |
| 38 | * Init VCT specific stuff |
| 39 | */ |
| 40 | ret = vct_ehci_hcd_init(&vct_hccr, &vct_hcor); |
| 41 | if (ret) |
| 42 | return ret; |
| 43 | |
Lucas Stach | 3494a4c | 2012-09-26 00:14:35 +0200 | [diff] [blame] | 44 | *hccr = (struct ehci_hccr *)vct_hccr; |
| 45 | *hcor = (struct ehci_hcor *)vct_hcor; |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 46 | |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | /* |
| 51 | * Destroy the appropriate control structures corresponding |
| 52 | * the the EHCI host controller. |
| 53 | */ |
Lucas Stach | 3494a4c | 2012-09-26 00:14:35 +0200 | [diff] [blame] | 54 | int ehci_hcd_stop(int index) |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 55 | { |
| 56 | return 0; |
| 57 | } |