blob: 4252c272cfb6ed5413d97c97c2d0f3e2dff1336b [file] [log] [blame]
Stefan Roese8cd69182009-01-29 06:33:55 +01001/*
2 * (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Stefan Roese8cd69182009-01-29 06:33:55 +01005 */
6
7#include <common.h>
8#include <usb.h>
9
Jean-Christophe PLAGNIOL-VILLARD8f6bcf42009-04-03 12:46:58 +020010#include "ehci.h"
Stefan Roese8cd69182009-01-29 06:33:55 +010011
12int 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 */
Lucas Stach3494a4c2012-09-26 00:14:35 +020018int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)
Stefan Roese8cd69182009-01-29 06:33:55 +010019{
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 Stach3494a4c2012-09-26 00:14:35 +020031 *hccr = (struct ehci_hccr *)vct_hccr;
32 *hcor = (struct ehci_hcor *)vct_hcor;
Stefan Roese8cd69182009-01-29 06:33:55 +010033
34 return 0;
35}
36
37/*
38 * Destroy the appropriate control structures corresponding
39 * the the EHCI host controller.
40 */
Lucas Stach3494a4c2012-09-26 00:14:35 +020041int ehci_hcd_stop(int index)
Stefan Roese8cd69182009-01-29 06:33:55 +010042{
43 return 0;
44}