blob: 5f8a159e7225b7a2d9829cb4dd4419976e1dcc76 [file] [log] [blame]
Stefan Roesea270d1e2009-01-29 06:33:55 +01001/*
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-VILLARD2731b9a2009-04-03 12:46:58 +020023#include "ehci.h"
Stefan Roesea270d1e2009-01-29 06:33:55 +010024
25int 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 Stach676ae062012-09-26 00:14:35 +020031int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)
Stefan Roesea270d1e2009-01-29 06:33:55 +010032{
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 Stach676ae062012-09-26 00:14:35 +020044 *hccr = (struct ehci_hccr *)vct_hccr;
45 *hcor = (struct ehci_hcor *)vct_hcor;
Stefan Roesea270d1e2009-01-29 06:33:55 +010046
47 return 0;
48}
49
50/*
51 * Destroy the appropriate control structures corresponding
52 * the the EHCI host controller.
53 */
Lucas Stach676ae062012-09-26 00:14:35 +020054int ehci_hcd_stop(int index)
Stefan Roesea270d1e2009-01-29 06:33:55 +010055{
56 return 0;
57}