Go to the documentation of this file.
10 #ifndef __MV_USB_OTG_CONTROLLER__
11 #define __MV_USB_OTG_CONTROLLER__
13 #include <linux/types.h>
16 #define USBCMD_RUN_STOP (0x00000001)
17 #define USBCMD_CTRL_RESET (0x00000002)
20 #define OTGSC_CTRL_VUSB_DISCHARGE 0x00000001
21 #define OTGSC_CTRL_VUSB_CHARGE 0x00000002
22 #define OTGSC_CTRL_OTG_TERM 0x00000008
23 #define OTGSC_CTRL_DATA_PULSING 0x00000010
24 #define OTGSC_STS_USB_ID 0x00000100
25 #define OTGSC_STS_A_VBUS_VALID 0x00000200
26 #define OTGSC_STS_A_SESSION_VALID 0x00000400
27 #define OTGSC_STS_B_SESSION_VALID 0x00000800
28 #define OTGSC_STS_B_SESSION_END 0x00001000
29 #define OTGSC_STS_1MS_TOGGLE 0x00002000
30 #define OTGSC_STS_DATA_PULSING 0x00004000
31 #define OTGSC_INTSTS_USB_ID 0x00010000
32 #define OTGSC_INTSTS_A_VBUS_VALID 0x00020000
33 #define OTGSC_INTSTS_A_SESSION_VALID 0x00040000
34 #define OTGSC_INTSTS_B_SESSION_VALID 0x00080000
35 #define OTGSC_INTSTS_B_SESSION_END 0x00100000
36 #define OTGSC_INTSTS_1MS 0x00200000
37 #define OTGSC_INTSTS_DATA_PULSING 0x00400000
38 #define OTGSC_INTR_USB_ID 0x01000000
39 #define OTGSC_INTR_A_VBUS_VALID 0x02000000
40 #define OTGSC_INTR_A_SESSION_VALID 0x04000000
41 #define OTGSC_INTR_B_SESSION_VALID 0x08000000
42 #define OTGSC_INTR_B_SESSION_END 0x10000000
43 #define OTGSC_INTR_1MS_TIMER 0x20000000
44 #define OTGSC_INTR_DATA_PULSING 0x40000000
46 #define CAPLENGTH_MASK (0xff)
49 #define T_A_WAIT_VRISE 100
50 #define T_A_WAIT_BCON 2000
51 #define T_A_AIDL_BDIS 100
52 #define T_A_BIDL_ADIS 20
53 #define T_B_ASE0_BRST 400
54 #define T_B_SE0_SRP 300
55 #define T_B_SRP_FAIL 2000
56 #define T_B_DATA_PLS 10
57 #define T_B_SRP_INIT 100
58 #define T_A_SRP_RSPNS 10
107 #define VUSBHS_MAX_PORTS 8