Lines Matching +full:5 +full:- +full:bits

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * OMAP Multi-Channel Buffered Serial Port
12 #include <linux/platform_data/asoc-ti-mcbsp.h>
51 /* OMAP1-OMAP2420 registers */
78 #define RINTM(value) (((value) & 0x3) << 4) /* bits 4:5 */
81 #define CLKSTP(value) (((value) & 0x3) << 11) /* bits 11:12 */
82 #define RJUST(value) (((value) & 0x3) << 13) /* bits 13:14 */
91 #define XINTM(value) (((value) & 0x3) << 4) /* bits 4:5 */
103 #define DX_STAT BIT(5)
115 #define RWDLEN1(value) (((value) & 0x7) << 5) /* Bits 5:7 */
116 #define RFRLEN1(value) (((value) & 0x7f) << 8) /* Bits 8:14 */
119 #define XWDLEN1(value) (((value) & 0x7) << 5) /* Bits 5:7 */
120 #define XFRLEN1(value) (((value) & 0x7f) << 8) /* Bits 8:14 */
123 #define RDATDLY(value) ((value) & 0x3) /* Bits 0:1 */
125 #define RCOMPAND(value) (((value) & 0x3) << 3) /* Bits 3:4 */
126 #define RWDLEN2(value) (((value) & 0x7) << 5) /* Bits 5:7 */
127 #define RFRLEN2(value) (((value) & 0x7f) << 8) /* Bits 8:14 */
131 #define XDATDLY(value) ((value) & 0x3) /* Bits 0:1 */
133 #define XCOMPAND(value) (((value) & 0x3) << 3) /* Bits 3:4 */
134 #define XWDLEN2(value) (((value) & 0x7) << 5) /* Bits 5:7 */
135 #define XFRLEN2(value) (((value) & 0x7f) << 8) /* Bits 8:14 */
139 #define CLKGDV(value) ((value) & 0x7f) /* Bits 0:7 */
140 #define FWID(value) (((value) & 0xff) << 8) /* Bits 8:15 */
143 #define FPER(value) ((value) & 0x0fff) /* Bits 0:11 */
151 #define RCBLK(value) (((value) & 0x7) << 2) /* Bits 2:4 */
152 #define RPABLK(value) (((value) & 0x3) << 5) /* Bits 5:6 */
153 #define RPBBLK(value) (((value) & 0x3) << 7) /* Bits 7:8 */
156 #define XMCM(value) ((value) & 0x3) /* Bits 0:1 */
157 #define XCBLK(value) (((value) & 0x7) << 2) /* Bits 2:4 */
158 #define XPABLK(value) (((value) & 0x3) << 5) /* Bits 5:6 */
159 #define XPBBLK(value) (((value) & 0x3) << 7) /* Bits 7:8 */
164 #define DILB BIT(5)
166 #define DXENDLY(value) (((value) & 0x3) << 12) /* Bits 12:13 */
191 #define ROVFLEN BIT(5)
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()
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()