xref: /OK3568_Linux_fs/u-boot/drivers/usb/host/ehci-vct.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * SPDX-License-Identifier:	GPL-2.0+
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #include <common.h>
8*4882a593Smuzhiyun #include <usb.h>
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #include "ehci.h"
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun int vct_ehci_hcd_init(u32 *hccr, u32 *hcor);
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun /*
15*4882a593Smuzhiyun  * Create the appropriate control structures to manage
16*4882a593Smuzhiyun  * a new EHCI host controller.
17*4882a593Smuzhiyun  */
ehci_hcd_init(int index,enum usb_init_type init,struct ehci_hccr ** hccr,struct ehci_hcor ** hcor)18*4882a593Smuzhiyun int ehci_hcd_init(int index, enum usb_init_type init,
19*4882a593Smuzhiyun 		struct ehci_hccr **hccr, struct ehci_hcor **hcor)
20*4882a593Smuzhiyun {
21*4882a593Smuzhiyun 	int ret;
22*4882a593Smuzhiyun 	u32 vct_hccr;
23*4882a593Smuzhiyun 	u32 vct_hcor;
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun 	/*
26*4882a593Smuzhiyun 	 * Init VCT specific stuff
27*4882a593Smuzhiyun 	 */
28*4882a593Smuzhiyun 	ret = vct_ehci_hcd_init(&vct_hccr, &vct_hcor);
29*4882a593Smuzhiyun 	if (ret)
30*4882a593Smuzhiyun 		return ret;
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun 	*hccr = (struct ehci_hccr *)vct_hccr;
33*4882a593Smuzhiyun 	*hcor = (struct ehci_hcor *)vct_hcor;
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun 	return 0;
36*4882a593Smuzhiyun }
37*4882a593Smuzhiyun 
38*4882a593Smuzhiyun /*
39*4882a593Smuzhiyun  * Destroy the appropriate control structures corresponding
40*4882a593Smuzhiyun  * the the EHCI host controller.
41*4882a593Smuzhiyun  */
ehci_hcd_stop(int index)42*4882a593Smuzhiyun int ehci_hcd_stop(int index)
43*4882a593Smuzhiyun {
44*4882a593Smuzhiyun 	return 0;
45*4882a593Smuzhiyun }
46