1
2
3
4
5
6
7
8
9
10#ifndef __MV_PLATFORM_USB_H
11#define __MV_PLATFORM_USB_H
12
13enum pxa_ehci_type {
14 EHCI_UNDEFINED = 0,
15 PXA_U2OEHCI,
16 PXA_SPH,
17 MMP3_HSIC,
18 MMP3_FSIC,
19};
20
21enum {
22 MV_USB_MODE_OTG,
23 MV_USB_MODE_HOST,
24};
25
26enum {
27 VBUS_LOW = 0,
28 VBUS_HIGH = 1 << 0,
29};
30
31struct mv_usb_addon_irq {
32 unsigned int irq;
33 int (*poll)(void);
34};
35
36struct mv_usb_platform_data {
37 struct mv_usb_addon_irq *id;
38 struct mv_usb_addon_irq *vbus;
39
40
41 unsigned int mode;
42
43
44 unsigned int disable_otg_clock_gating:1;
45
46 unsigned int otg_force_a_bus_req:1;
47
48 int (*phy_init)(void __iomem *regbase);
49 void (*phy_deinit)(void __iomem *regbase);
50 int (*set_vbus)(unsigned int vbus);
51 int (*private_init)(void __iomem *opregs, void __iomem *phyregs);
52};
53#endif
54