Lines Matching full:mcbsp
12 #include <linux/platform_data/asoc-ti-mcbsp.h>
20 /* McBSP register numbers. Register address offset = num * reg_step */
73 /************************** McBSP SPCR1 bit definitions ***********************/
86 /************************** McBSP SPCR2 bit definitions ***********************/
97 /************************** McBSP PCR bit definitions *************************/
114 /************************** McBSP RCR1 bit definitions ************************/
118 /************************** McBSP XCR1 bit definitions ************************/
122 /*************************** McBSP RCR2 bit definitions ***********************/
130 /*************************** McBSP XCR2 bit definitions ***********************/
138 /************************* McBSP SRGR1 bit definitions ************************/
142 /************************* McBSP SRGR2 bit definitions ************************/
149 /************************* McBSP MCR1 bit definitions *************************/
155 /************************* McBSP MCR2 bit definitions *************************/
161 /*********************** McBSP XCCR bit definitions *************************/
170 /********************** McBSP RCCR bit definitions *************************/
175 /********************** McBSP SYSCONFIG bit definitions ********************/
181 /********************** McBSP DMA operating modes **************************/
185 /********************** McBSP WAKEUPEN/IRQST/IRQEN bit definitions *********/
206 /* McBSP functional clock sources */
261 /* Protect the field .free, while checking if the mcbsp is in use */
282 static inline void omap_mcbsp_write(struct omap_mcbsp *mcbsp, u16 reg, u32 val) in omap_mcbsp_write() argument
284 void __iomem *addr = mcbsp->io_base + reg * mcbsp->pdata->reg_step; in omap_mcbsp_write()
286 if (mcbsp->pdata->reg_size == 2) { in omap_mcbsp_write()
287 ((u16 *)mcbsp->reg_cache)[reg] = (u16)val; in omap_mcbsp_write()
290 ((u32 *)mcbsp->reg_cache)[reg] = val; in omap_mcbsp_write()
295 static inline int omap_mcbsp_read(struct omap_mcbsp *mcbsp, u16 reg, in omap_mcbsp_read() argument
298 void __iomem *addr = mcbsp->io_base + reg * mcbsp->pdata->reg_step; in omap_mcbsp_read()
300 if (mcbsp->pdata->reg_size == 2) { in omap_mcbsp_read()
302 ((u16 *)mcbsp->reg_cache)[reg]; in omap_mcbsp_read()
305 ((u32 *)mcbsp->reg_cache)[reg]; in omap_mcbsp_read()
309 #define MCBSP_READ(mcbsp, reg) \ argument
310 omap_mcbsp_read(mcbsp, OMAP_MCBSP_REG_##reg, 0)
311 #define MCBSP_WRITE(mcbsp, reg, val) \ argument
312 omap_mcbsp_write(mcbsp, OMAP_MCBSP_REG_##reg, val)
313 #define MCBSP_READ_CACHE(mcbsp, reg) \ argument
314 omap_mcbsp_read(mcbsp, OMAP_MCBSP_REG_##reg, 1)
319 int omap_mcbsp_st_start(struct omap_mcbsp *mcbsp);
320 int omap_mcbsp_st_stop(struct omap_mcbsp *mcbsp);