Go to the documentation of this file.
16 #ifndef __LINUX_USB_GADGET_MSM72K_UDC_H__
17 #define __LINUX_USB_GADGET_MSM72K_UDC_H__
19 #define USB_AHBBURST (MSM_USB_BASE + 0x0090)
20 #define USB_AHBMODE (MSM_USB_BASE + 0x0098)
21 #define USB_CAPLENGTH (MSM_USB_BASE + 0x0100)
23 #define USB_USBCMD (MSM_USB_BASE + 0x0140)
24 #define USB_PORTSC (MSM_USB_BASE + 0x0184)
25 #define USB_OTGSC (MSM_USB_BASE + 0x01A4)
26 #define USB_USBMODE (MSM_USB_BASE + 0x01A8)
27 #define USB_PHY_CTRL (MSM_USB_BASE + 0x0240)
29 #define USBCMD_RESET 2
30 #define USB_USBINTR (MSM_USB_BASE + 0x0148)
32 #define PORTSC_PHCD (1 << 23)
33 #define PORTSC_PTS_MASK (3 << 30)
34 #define PORTSC_PTS_ULPI (3 << 30)
36 #define USB_ULPI_VIEWPORT (MSM_USB_BASE + 0x0170)
37 #define ULPI_RUN (1 << 30)
38 #define ULPI_WRITE (1 << 29)
39 #define ULPI_READ (0 << 29)
40 #define ULPI_ADDR(n) (((n) & 255) << 16)
41 #define ULPI_DATA(n) ((n) & 255)
42 #define ULPI_DATA_READ(n) (((n) >> 8) & 255)
44 #define ASYNC_INTR_CTRL (1 << 29)
45 #define ULPI_STP_CTRL (1 << 30)
46 #define PHY_RETEN (1 << 1)
49 #define OTGSC_INTSTS_MASK (0x7f << 16)
50 #define OTGSC_ID (1 << 8)
51 #define OTGSC_BSV (1 << 11)
52 #define OTGSC_IDIS (1 << 16)
53 #define OTGSC_BSVIS (1 << 19)
54 #define OTGSC_IDIE (1 << 24)
55 #define OTGSC_BSVIE (1 << 27)