Go to the documentation of this file.
11 #ifndef __ASM_ARCH_REGS_UDC_H
12 #define __ASM_ARCH_REGS_UDC_H
14 #define S3C2410_USBDREG(x) (x)
16 #define S3C2410_UDC_FUNC_ADDR_REG S3C2410_USBDREG(0x0140)
17 #define S3C2410_UDC_PWR_REG S3C2410_USBDREG(0x0144)
18 #define S3C2410_UDC_EP_INT_REG S3C2410_USBDREG(0x0148)
20 #define S3C2410_UDC_USB_INT_REG S3C2410_USBDREG(0x0158)
21 #define S3C2410_UDC_EP_INT_EN_REG S3C2410_USBDREG(0x015c)
23 #define S3C2410_UDC_USB_INT_EN_REG S3C2410_USBDREG(0x016c)
25 #define S3C2410_UDC_FRAME_NUM1_REG S3C2410_USBDREG(0x0170)
26 #define S3C2410_UDC_FRAME_NUM2_REG S3C2410_USBDREG(0x0174)
28 #define S3C2410_UDC_EP0_FIFO_REG S3C2410_USBDREG(0x01c0)
29 #define S3C2410_UDC_EP1_FIFO_REG S3C2410_USBDREG(0x01c4)
30 #define S3C2410_UDC_EP2_FIFO_REG S3C2410_USBDREG(0x01c8)
31 #define S3C2410_UDC_EP3_FIFO_REG S3C2410_USBDREG(0x01cc)
32 #define S3C2410_UDC_EP4_FIFO_REG S3C2410_USBDREG(0x01d0)
34 #define S3C2410_UDC_EP1_DMA_CON S3C2410_USBDREG(0x0200)
35 #define S3C2410_UDC_EP1_DMA_UNIT S3C2410_USBDREG(0x0204)
36 #define S3C2410_UDC_EP1_DMA_FIFO S3C2410_USBDREG(0x0208)
37 #define S3C2410_UDC_EP1_DMA_TTC_L S3C2410_USBDREG(0x020c)
38 #define S3C2410_UDC_EP1_DMA_TTC_M S3C2410_USBDREG(0x0210)
39 #define S3C2410_UDC_EP1_DMA_TTC_H S3C2410_USBDREG(0x0214)
41 #define S3C2410_UDC_EP2_DMA_CON S3C2410_USBDREG(0x0218)
42 #define S3C2410_UDC_EP2_DMA_UNIT S3C2410_USBDREG(0x021c)
43 #define S3C2410_UDC_EP2_DMA_FIFO S3C2410_USBDREG(0x0220)
44 #define S3C2410_UDC_EP2_DMA_TTC_L S3C2410_USBDREG(0x0224)
45 #define S3C2410_UDC_EP2_DMA_TTC_M S3C2410_USBDREG(0x0228)
46 #define S3C2410_UDC_EP2_DMA_TTC_H S3C2410_USBDREG(0x022c)
48 #define S3C2410_UDC_EP3_DMA_CON S3C2410_USBDREG(0x0240)
49 #define S3C2410_UDC_EP3_DMA_UNIT S3C2410_USBDREG(0x0244)
50 #define S3C2410_UDC_EP3_DMA_FIFO S3C2410_USBDREG(0x0248)
51 #define S3C2410_UDC_EP3_DMA_TTC_L S3C2410_USBDREG(0x024c)
52 #define S3C2410_UDC_EP3_DMA_TTC_M S3C2410_USBDREG(0x0250)
53 #define S3C2410_UDC_EP3_DMA_TTC_H S3C2410_USBDREG(0x0254)
55 #define S3C2410_UDC_EP4_DMA_CON S3C2410_USBDREG(0x0258)
56 #define S3C2410_UDC_EP4_DMA_UNIT S3C2410_USBDREG(0x025c)
57 #define S3C2410_UDC_EP4_DMA_FIFO S3C2410_USBDREG(0x0260)
58 #define S3C2410_UDC_EP4_DMA_TTC_L S3C2410_USBDREG(0x0264)
59 #define S3C2410_UDC_EP4_DMA_TTC_M S3C2410_USBDREG(0x0268)
60 #define S3C2410_UDC_EP4_DMA_TTC_H S3C2410_USBDREG(0x026c)
62 #define S3C2410_UDC_INDEX_REG S3C2410_USBDREG(0x0178)
66 #define S3C2410_UDC_MAXP_REG S3C2410_USBDREG(0x0180)
68 #define S3C2410_UDC_EP0_CSR_REG S3C2410_USBDREG(0x0184)
70 #define S3C2410_UDC_IN_CSR1_REG S3C2410_USBDREG(0x0184)
71 #define S3C2410_UDC_IN_CSR2_REG S3C2410_USBDREG(0x0188)
73 #define S3C2410_UDC_OUT_CSR1_REG S3C2410_USBDREG(0x0190)
74 #define S3C2410_UDC_OUT_CSR2_REG S3C2410_USBDREG(0x0194)
75 #define S3C2410_UDC_OUT_FIFO_CNT1_REG S3C2410_USBDREG(0x0198)
76 #define S3C2410_UDC_OUT_FIFO_CNT2_REG S3C2410_USBDREG(0x019c)
78 #define S3C2410_UDC_FUNCADDR_UPDATE (1 << 7)
80 #define S3C2410_UDC_PWR_ISOUP (1 << 7)
81 #define S3C2410_UDC_PWR_RESET (1 << 3)
82 #define S3C2410_UDC_PWR_RESUME (1 << 2)
83 #define S3C2410_UDC_PWR_SUSPEND (1 << 1)
84 #define S3C2410_UDC_PWR_ENSUSPEND (1 << 0)
86 #define S3C2410_UDC_PWR_DEFAULT (0x00)
88 #define S3C2410_UDC_INT_EP4 (1 << 4)
89 #define S3C2410_UDC_INT_EP3 (1 << 3)
90 #define S3C2410_UDC_INT_EP2 (1 << 2)
91 #define S3C2410_UDC_INT_EP1 (1 << 1)
92 #define S3C2410_UDC_INT_EP0 (1 << 0)
94 #define S3C2410_UDC_USBINT_RESET (1 << 2)
95 #define S3C2410_UDC_USBINT_RESUME (1 << 1)
96 #define S3C2410_UDC_USBINT_SUSPEND (1 << 0)
98 #define S3C2410_UDC_INTE_EP4 (1 << 4)
99 #define S3C2410_UDC_INTE_EP3 (1 << 3)
100 #define S3C2410_UDC_INTE_EP2 (1 << 2)
101 #define S3C2410_UDC_INTE_EP1 (1 << 1)
102 #define S3C2410_UDC_INTE_EP0 (1 << 0)
104 #define S3C2410_UDC_USBINTE_RESET (1 << 2)
105 #define S3C2410_UDC_USBINTE_SUSPEND (1 << 0)
107 #define S3C2410_UDC_INDEX_EP0 (0x00)
108 #define S3C2410_UDC_INDEX_EP1 (0x01)
109 #define S3C2410_UDC_INDEX_EP2 (0x02)
110 #define S3C2410_UDC_INDEX_EP3 (0x03)
111 #define S3C2410_UDC_INDEX_EP4 (0x04)
113 #define S3C2410_UDC_ICSR1_CLRDT (1 << 6)
114 #define S3C2410_UDC_ICSR1_SENTSTL (1 << 5)
115 #define S3C2410_UDC_ICSR1_SENDSTL (1 << 4)
116 #define S3C2410_UDC_ICSR1_FFLUSH (1 << 3)
117 #define S3C2410_UDC_ICSR1_UNDRUN (1 << 2)
118 #define S3C2410_UDC_ICSR1_PKTRDY (1 << 0)
120 #define S3C2410_UDC_ICSR2_AUTOSET (1 << 7)
121 #define S3C2410_UDC_ICSR2_ISO (1 << 6)
122 #define S3C2410_UDC_ICSR2_MODEIN (1 << 5)
123 #define S3C2410_UDC_ICSR2_DMAIEN (1 << 4)
125 #define S3C2410_UDC_OCSR1_CLRDT (1 << 7)
126 #define S3C2410_UDC_OCSR1_SENTSTL (1 << 6)
127 #define S3C2410_UDC_OCSR1_SENDSTL (1 << 5)
128 #define S3C2410_UDC_OCSR1_FFLUSH (1 << 4)
129 #define S3C2410_UDC_OCSR1_DERROR (1 << 3)
130 #define S3C2410_UDC_OCSR1_OVRRUN (1 << 2)
131 #define S3C2410_UDC_OCSR1_PKTRDY (1 << 0)
133 #define S3C2410_UDC_OCSR2_AUTOCLR (1 << 7)
134 #define S3C2410_UDC_OCSR2_ISO (1 << 6)
135 #define S3C2410_UDC_OCSR2_DMAIEN (1 << 5)
137 #define S3C2410_UDC_EP0_CSR_OPKRDY (1 << 0)
138 #define S3C2410_UDC_EP0_CSR_IPKRDY (1 << 1)
139 #define S3C2410_UDC_EP0_CSR_SENTSTL (1 << 2)
140 #define S3C2410_UDC_EP0_CSR_DE (1 << 3)
141 #define S3C2410_UDC_EP0_CSR_SE (1 << 4)
142 #define S3C2410_UDC_EP0_CSR_SENDSTL (1 << 5)
143 #define S3C2410_UDC_EP0_CSR_SOPKTRDY (1 << 6)
144 #define S3C2410_UDC_EP0_CSR_SSE (1 << 7)
146 #define S3C2410_UDC_MAXP_8 (1 << 0)
147 #define S3C2410_UDC_MAXP_16 (1 << 1)
148 #define S3C2410_UDC_MAXP_32 (1 << 2)
149 #define S3C2410_UDC_MAXP_64 (1 << 3)