]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/arm/plat-mxc/include/mach/mxc_ehci.h
1 #ifndef __INCLUDE_ASM_ARCH_MXC_EHCI_H
2 #define __INCLUDE_ASM_ARCH_MXC_EHCI_H
4 /* values for portsc field */
5 #define MXC_EHCI_PHY_LOW_POWER_SUSPEND (1 << 23)
6 #define MXC_EHCI_FORCE_FS (1 << 24)
7 #define MXC_EHCI_UTMI_8BIT (0 << 28)
8 #define MXC_EHCI_UTMI_16BIT (1 << 28)
9 #define MXC_EHCI_SERIAL (1 << 29)
10 #define MXC_EHCI_MODE_UTMI (0 << 30)
11 #define MXC_EHCI_MODE_PHILIPS (1 << 30)
12 #define MXC_EHCI_MODE_ULPI (2 << 30)
13 #define MXC_EHCI_MODE_SERIAL (3 << 30)
15 /* values for flags field */
16 #define MXC_EHCI_INTERFACE_DIFF_UNI (0 << 0)
17 #define MXC_EHCI_INTERFACE_DIFF_BI (1 << 0)
18 #define MXC_EHCI_INTERFACE_SINGLE_UNI (2 << 0)
19 #define MXC_EHCI_INTERFACE_SINGLE_BI (3 << 0)
20 #define MXC_EHCI_INTERFACE_MASK (0xf)
22 #define MXC_EHCI_POWER_PINS_ENABLED (1 << 5)
23 #define MXC_EHCI_TTL_ENABLED (1 << 6)
25 #define MXC_EHCI_INTERNAL_PHY (1 << 7)
26 #define MXC_EHCI_IPPUE_DOWN (1 << 8)
27 #define MXC_EHCI_IPPUE_UP (1 << 9)
29 struct mxc_usbh_platform_data
{
30 int (*init
)(struct platform_device
*pdev
);
31 int (*exit
)(struct platform_device
*pdev
);
35 struct otg_transceiver
*otg
;
38 int mxc_set_usbcontrol(int port
, unsigned int flags
);
40 #endif /* __INCLUDE_ASM_ARCH_MXC_EHCI_H */