diff options
Diffstat (limited to 'include/linux/platform_data/usb-mx2.h')
| -rw-r--r-- | include/linux/platform_data/usb-mx2.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/linux/platform_data/usb-mx2.h b/include/linux/platform_data/usb-mx2.h new file mode 100644 index 000000000000..22d0b596262c --- /dev/null +++ b/include/linux/platform_data/usb-mx2.h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2009 Martin Fuzzey <mfuzzey@gmail.com> | ||
| 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 */ | ||
