Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
platform_data
usb-mx2.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2009 Martin Fuzzey <
[email protected]
>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (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
15
#ifndef __ASM_ARCH_MX21_USBH
16
#define __ASM_ARCH_MX21_USBH
17
18
enum
mx21_usbh_xcvr
{
19
/* Values below as used by hardware (HWMODE register) */
20
MX21_USBXCVR_TXDIF_RXDIF
= 0,
21
MX21_USBXCVR_TXDIF_RXSE
= 1,
22
MX21_USBXCVR_TXSE_RXDIF
= 2,
23
MX21_USBXCVR_TXSE_RXSE
= 3,
24
};
25
26
struct
mx21_usbh_platform_data
{
27
enum
mx21_usbh_xcvr
host_xcvr
;
/* tranceiver mode host 1,2 ports */
28
enum
mx21_usbh_xcvr
otg_xcvr
;
/* tranceiver mode otg (as host) port */
29
u16
enable_host1
:1,
30
enable_host2
:1,
31
enable_otg_host
:1,
/* enable "OTG" port (as host) */
32
host1_xcverless
:1,
/* traceiverless host1 port */
33
host1_txenoe
:1,
/* output enable host1 transmit enable */
34
otg_ext_xcvr
:1,
/* external tranceiver for OTG port */
35
unused
:10;
36
};
37
38
#endif
/* __ASM_ARCH_MX21_USBH */
Generated on Thu Jan 10 2013 14:52:21 for Linux Kernel by
1.8.2