xref: /freebsd/sys/arm/ti/usb/omap_usb.h (revision 5b03aba6c8aecab2d9c302392ae2c791cd13f4c6)
1e53470feSOleksandr Tymoshenko /*
2e53470feSOleksandr Tymoshenko  * Copyright (c) 2010
3e53470feSOleksandr Tymoshenko  *	Ben Gray <ben.r.gray@gmail.com>.
4e53470feSOleksandr Tymoshenko  * All rights reserved.
5e53470feSOleksandr Tymoshenko  *
6e53470feSOleksandr Tymoshenko  * Redistribution and use in source and binary forms, with or without
7e53470feSOleksandr Tymoshenko  * modification, are permitted provided that the following conditions
8e53470feSOleksandr Tymoshenko  * are met:
9e53470feSOleksandr Tymoshenko  * 1. Redistributions of source code must retain the above copyright
10e53470feSOleksandr Tymoshenko  *    notice, this list of conditions and the following disclaimer.
11e53470feSOleksandr Tymoshenko  * 2. Redistributions in binary form must reproduce the above copyright
12e53470feSOleksandr Tymoshenko  *    notice, this list of conditions and the following disclaimer in the
13e53470feSOleksandr Tymoshenko  *    documentation and/or other materials provided with the distribution.
14e53470feSOleksandr Tymoshenko  * 3. All advertising materials mentioning features or use of this software
15e53470feSOleksandr Tymoshenko  *    must display the following acknowledgement:
16e53470feSOleksandr Tymoshenko  *	This product includes software developed by Ben Gray.
17e53470feSOleksandr Tymoshenko  * 4. The name of the company nor the name of the author may be used to
18e53470feSOleksandr Tymoshenko  *    endorse or promote products derived from this software without specific
19e53470feSOleksandr Tymoshenko  *    prior written permission.
20e53470feSOleksandr Tymoshenko  *
21e53470feSOleksandr Tymoshenko  * THIS SOFTWARE IS PROVIDED BY BEN GRAY ``AS IS'' AND ANY EXPRESS OR
22e53470feSOleksandr Tymoshenko  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23e53470feSOleksandr Tymoshenko  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24e53470feSOleksandr Tymoshenko  * IN NO EVENT SHALL BEN GRAY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25e53470feSOleksandr Tymoshenko  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26e53470feSOleksandr Tymoshenko  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27e53470feSOleksandr Tymoshenko  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28e53470feSOleksandr Tymoshenko  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29e53470feSOleksandr Tymoshenko  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30e53470feSOleksandr Tymoshenko  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31e53470feSOleksandr Tymoshenko  *
32e53470feSOleksandr Tymoshenko  * $FreeBSD$
33e53470feSOleksandr Tymoshenko  */
34e53470feSOleksandr Tymoshenko 
35e53470feSOleksandr Tymoshenko #ifndef _OMAP_USB_H_
36e53470feSOleksandr Tymoshenko #define	_OMAP_USB_H_
37e53470feSOleksandr Tymoshenko 
38*5b03aba6SOleksandr Tymoshenko #define	OMAP_HS_USB_PORTS	3
39e53470feSOleksandr Tymoshenko 
40e53470feSOleksandr Tymoshenko #define EHCI_HCD_OMAP_MODE_UNKNOWN  0
41e53470feSOleksandr Tymoshenko #define EHCI_HCD_OMAP_MODE_PHY      1
42e53470feSOleksandr Tymoshenko #define EHCI_HCD_OMAP_MODE_TLL      2
43e53470feSOleksandr Tymoshenko #define EHCI_HCD_OMAP_MODE_HSIC     3
44e53470feSOleksandr Tymoshenko 
45*5b03aba6SOleksandr Tymoshenko void omap_tll_utmi_enable(unsigned int en_mask);
46*5b03aba6SOleksandr Tymoshenko int omap_usb_port_mode(device_t dev, int port);
47*5b03aba6SOleksandr Tymoshenko 
48e53470feSOleksandr Tymoshenko #endif	/* _OMAP_USB_H_ */
49