Go to the documentation of this file.
24 #ifndef __ASOC_MCBSP_H
25 #define __ASOC_MCBSP_H
83 #define OMAP_ST_REG_REV 0x00
84 #define OMAP_ST_REG_SYSCONFIG 0x10
85 #define OMAP_ST_REG_IRQSTATUS 0x18
86 #define OMAP_ST_REG_IRQENABLE 0x1C
87 #define OMAP_ST_REG_SGAINCR 0x24
88 #define OMAP_ST_REG_SFIRCR 0x28
89 #define OMAP_ST_REG_SSELCR 0x2C
95 #define RSYNC_ERR BIT(3)
96 #define RINTM(value) (((value) & 0x3) << 4)
99 #define CLKSTP(value) (((value) & 0x3) << 11)
100 #define RJUST(value) (((value) & 0x3) << 13)
107 #define XEMPTY BIT(2)
108 #define XSYNC_ERR BIT(3)
109 #define XINTM(value) (((value) & 0x3) << 4)
120 #define DR_STAT BIT(4)
121 #define DX_STAT BIT(5)
122 #define CLKS_STAT BIT(6)
123 #define SCLKME BIT(7)
128 #define RIOEN BIT(12)
129 #define XIOEN BIT(13)
130 #define IDLE_EN BIT(14)
133 #define RWDLEN1(value) (((value) & 0x7) << 5)
134 #define RFRLEN1(value) (((value) & 0x7f) << 8)
137 #define XWDLEN1(value) (((value) & 0x7) << 5)
138 #define XFRLEN1(value) (((value) & 0x7f) << 8)
141 #define RDATDLY(value) ((value) & 0x3)
143 #define RCOMPAND(value) (((value) & 0x3) << 3)
144 #define RWDLEN2(value) (((value) & 0x7) << 5)
145 #define RFRLEN2(value) (((value) & 0x7f) << 8)
146 #define RPHASE BIT(15)
149 #define XDATDLY(value) ((value) & 0x3)
151 #define XCOMPAND(value) (((value) & 0x3) << 3)
152 #define XWDLEN2(value) (((value) & 0x7) << 5)
153 #define XFRLEN2(value) (((value) & 0x7f) << 8)
154 #define XPHASE BIT(15)
157 #define CLKGDV(value) ((value) & 0x7f)
158 #define FWID(value) (((value) & 0xff) << 8)
161 #define FPER(value) ((value) & 0x0fff)
163 #define CLKSM BIT(13)
164 #define CLKSP BIT(14)
165 #define GSYNC BIT(15)
169 #define RCBLK(value) (((value) & 0x7) << 2)
170 #define RPABLK(value) (((value) & 0x3) << 5)
171 #define RPBBLK(value) (((value) & 0x3) << 7)
174 #define XMCM(value) ((value) & 0x3)
175 #define XCBLK(value) (((value) & 0x7) << 2)
176 #define XPABLK(value) (((value) & 0x3) << 5)
177 #define XPBBLK(value) (((value) & 0x3) << 7)
180 #define XDISABLE BIT(0)
181 #define XDMAEN BIT(3)
183 #define XFULL_CYCLE BIT(11)
184 #define DXENDLY(value) (((value) & 0x3) << 12)
185 #define PPCONNECT BIT(14)
186 #define EXTCLKGATE BIT(15)
189 #define RDISABLE BIT(0)
190 #define RDMAEN BIT(3)
191 #define RFULL_CYCLE BIT(11)
194 #define SOFTRST BIT(1)
195 #define ENAWAKEUP BIT(2)
196 #define SIDLEMODE(value) (((value) & 0x3) << 3)
197 #define CLOCKACTIVITY(value) (((value) & 0x3) << 8)
200 #define SIDETONEEN BIT(10)
203 #define ST_AUTOIDLE BIT(0)
206 #define ST_CH0GAIN(value) ((value) & 0xffff)
207 #define ST_CH1GAIN(value) (((value) & 0xffff) << 16)
210 #define ST_FIRCOEFF(value) ((value) & 0xffff)
213 #define ST_SIDETONEEN BIT(0)
214 #define ST_COEFFWREN BIT(1)
215 #define ST_COEFFWRDONE BIT(2)
218 #define MCBSP_DMA_MODE_ELEMENT 0
219 #define MCBSP_DMA_MODE_THRESHOLD 1
222 #define RSYNCERREN BIT(0)
223 #define RFSREN BIT(1)
224 #define REOFEN BIT(2)
225 #define RRDYEN BIT(3)
226 #define RUNDFLEN BIT(4)
227 #define ROVFLEN BIT(5)
228 #define XSYNCERREN BIT(7)
229 #define XFSXEN BIT(8)
230 #define XEOFEN BIT(9)
231 #define XRDYEN BIT(10)
232 #define XUNDFLEN BIT(11)
233 #define XOVFLEN BIT(12)
234 #define XEMPTYEOFEN BIT(14)
237 #define CLKR_SRC_CLKR 0
238 #define CLKR_SRC_CLKX 1
239 #define FSR_SRC_FSR 2
240 #define FSR_SRC_FSX 3
243 #define MCBSP_CLKS_PRCM_SRC 0
244 #define MCBSP_CLKS_PAD_SRC 1