1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *	Copyright (C) 2009 Martin Fuzzey <mfuzzey@gmail.com>
4  */
5 
6 #ifndef __ASM_ARCH_MX21_USBH
7 #define __ASM_ARCH_MX21_USBH
8 
9 enum mx21_usbh_xcvr {
10 	/* Values below as used by hardware (HWMODE register) */
11 	MX21_USBXCVR_TXDIF_RXDIF = 0,
12 	MX21_USBXCVR_TXDIF_RXSE = 1,
13 	MX21_USBXCVR_TXSE_RXDIF = 2,
14 	MX21_USBXCVR_TXSE_RXSE = 3,
15 };
16 
17 struct mx21_usbh_platform_data {
18 	enum mx21_usbh_xcvr host_xcvr; /* tranceiver mode host 1,2 ports */
19 	enum mx21_usbh_xcvr otg_xcvr; /* tranceiver mode otg (as host) port */
20 	u16 	enable_host1:1,
21 		enable_host2:1,
22 		enable_otg_host:1, /* enable "OTG" port (as host) */
23 		host1_xcverless:1, /* traceiverless host1 port */
24 		host1_txenoe:1, /* output enable host1 transmit enable */
25 		otg_ext_xcvr:1, /* external tranceiver for OTG port */
26 		unused:10;
27 };
28 
29 #endif /* __ASM_ARCH_MX21_USBH */
30