2 * Copyright (C) 2009 Martin Fuzzey <mfuzzey@gmail.com>
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.
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.
15 #ifndef __ASM_ARCH_MX21_USBH
16 #define __ASM_ARCH_MX21_USBH
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,
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 */
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 */
38 #endif /* __ASM_ARCH_MX21_USBH */