Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <usb.h> |
| 8 | |
Jean-Christophe PLAGNIOL-VILLARD | 8f6bcf4 | 2009-04-03 12:46:58 +0200 | [diff] [blame] | 9 | #include "ehci.h" |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 10 | |
| 11 | int vct_ehci_hcd_init(u32 *hccr, u32 *hcor); |
| 12 | |
| 13 | /* |
| 14 | * Create the appropriate control structures to manage |
| 15 | * a new EHCI host controller. |
| 16 | */ |
Troy Kisky | 7d6bbb9 | 2013-10-10 15:27:57 -0700 | [diff] [blame] | 17 | int ehci_hcd_init(int index, enum usb_init_type init, |
| 18 | struct ehci_hccr **hccr, struct ehci_hcor **hcor) |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 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 | |
Lucas Stach | 3494a4c | 2012-09-26 00:14:35 +0200 | [diff] [blame] | 31 | *hccr = (struct ehci_hccr *)vct_hccr; |
| 32 | *hcor = (struct ehci_hcor *)vct_hcor; |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 33 | |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | /* |
| 38 | * Destroy the appropriate control structures corresponding |
| 39 | * the the EHCI host controller. |
| 40 | */ |
Lucas Stach | 3494a4c | 2012-09-26 00:14:35 +0200 | [diff] [blame] | 41 | int ehci_hcd_stop(int index) |
Stefan Roese | 8cd6918 | 2009-01-29 06:33:55 +0100 | [diff] [blame] | 42 | { |
| 43 | return 0; |
| 44 | } |