Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
mcbsp.h File Reference
#include "omap-pcm.h"

Go to the source code of this file.

Data Structures

struct  omap_mcbsp_reg_cfg
 
struct  omap_mcbsp_st_data
 
struct  omap_mcbsp
 

Macros

#define OMAP_ST_REG_REV   0x00
 
#define OMAP_ST_REG_SYSCONFIG   0x10
 
#define OMAP_ST_REG_IRQSTATUS   0x18
 
#define OMAP_ST_REG_IRQENABLE   0x1C
 
#define OMAP_ST_REG_SGAINCR   0x24
 
#define OMAP_ST_REG_SFIRCR   0x28
 
#define OMAP_ST_REG_SSELCR   0x2C
 
#define RRST   BIT(0)
 
#define RRDY   BIT(1)
 
#define RFULL   BIT(2)
 
#define RSYNC_ERR   BIT(3)
 
#define RINTM(value)   (((value) & 0x3) << 4) /* bits 4:5 */
 
#define ABIS   BIT(6)
 
#define DXENA   BIT(7)
 
#define CLKSTP(value)   (((value) & 0x3) << 11) /* bits 11:12 */
 
#define RJUST(value)   (((value) & 0x3) << 13) /* bits 13:14 */
 
#define ALB   BIT(15)
 
#define DLB   BIT(15)
 
#define XRST   BIT(0)
 
#define XRDY   BIT(1)
 
#define XEMPTY   BIT(2)
 
#define XSYNC_ERR   BIT(3)
 
#define XINTM(value)   (((value) & 0x3) << 4) /* bits 4:5 */
 
#define GRST   BIT(6)
 
#define FRST   BIT(7)
 
#define SOFT   BIT(8)
 
#define FREE   BIT(9)
 
#define CLKRP   BIT(0)
 
#define CLKXP   BIT(1)
 
#define FSRP   BIT(2)
 
#define FSXP   BIT(3)
 
#define DR_STAT   BIT(4)
 
#define DX_STAT   BIT(5)
 
#define CLKS_STAT   BIT(6)
 
#define SCLKME   BIT(7)
 
#define CLKRM   BIT(8)
 
#define CLKXM   BIT(9)
 
#define FSRM   BIT(10)
 
#define FSXM   BIT(11)
 
#define RIOEN   BIT(12)
 
#define XIOEN   BIT(13)
 
#define IDLE_EN   BIT(14)
 
#define RWDLEN1(value)   (((value) & 0x7) << 5) /* Bits 5:7 */
 
#define RFRLEN1(value)   (((value) & 0x7f) << 8) /* Bits 8:14 */
 
#define XWDLEN1(value)   (((value) & 0x7) << 5) /* Bits 5:7 */
 
#define XFRLEN1(value)   (((value) & 0x7f) << 8) /* Bits 8:14 */
 
#define RDATDLY(value)   ((value) & 0x3) /* Bits 0:1 */
 
#define RFIG   BIT(2)
 
#define RCOMPAND(value)   (((value) & 0x3) << 3) /* Bits 3:4 */
 
#define RWDLEN2(value)   (((value) & 0x7) << 5) /* Bits 5:7 */
 
#define RFRLEN2(value)   (((value) & 0x7f) << 8) /* Bits 8:14 */
 
#define RPHASE   BIT(15)
 
#define XDATDLY(value)   ((value) & 0x3) /* Bits 0:1 */
 
#define XFIG   BIT(2)
 
#define XCOMPAND(value)   (((value) & 0x3) << 3) /* Bits 3:4 */
 
#define XWDLEN2(value)   (((value) & 0x7) << 5) /* Bits 5:7 */
 
#define XFRLEN2(value)   (((value) & 0x7f) << 8) /* Bits 8:14 */
 
#define XPHASE   BIT(15)
 
#define CLKGDV(value)   ((value) & 0x7f) /* Bits 0:7 */
 
#define FWID(value)   (((value) & 0xff) << 8) /* Bits 8:15 */
 
#define FPER(value)   ((value) & 0x0fff) /* Bits 0:11 */
 
#define FSGM   BIT(12)
 
#define CLKSM   BIT(13)
 
#define CLKSP   BIT(14)
 
#define GSYNC   BIT(15)
 
#define RMCM   BIT(0)
 
#define RCBLK(value)   (((value) & 0x7) << 2) /* Bits 2:4 */
 
#define RPABLK(value)   (((value) & 0x3) << 5) /* Bits 5:6 */
 
#define RPBBLK(value)   (((value) & 0x3) << 7) /* Bits 7:8 */
 
#define XMCM(value)   ((value) & 0x3) /* Bits 0:1 */
 
#define XCBLK(value)   (((value) & 0x7) << 2) /* Bits 2:4 */
 
#define XPABLK(value)   (((value) & 0x3) << 5) /* Bits 5:6 */
 
#define XPBBLK(value)   (((value) & 0x3) << 7) /* Bits 7:8 */
 
#define XDISABLE   BIT(0)
 
#define XDMAEN   BIT(3)
 
#define DILB   BIT(5)
 
#define XFULL_CYCLE   BIT(11)
 
#define DXENDLY(value)   (((value) & 0x3) << 12) /* Bits 12:13 */
 
#define PPCONNECT   BIT(14)
 
#define EXTCLKGATE   BIT(15)
 
#define RDISABLE   BIT(0)
 
#define RDMAEN   BIT(3)
 
#define RFULL_CYCLE   BIT(11)
 
#define SOFTRST   BIT(1)
 
#define ENAWAKEUP   BIT(2)
 
#define SIDLEMODE(value)   (((value) & 0x3) << 3)
 
#define CLOCKACTIVITY(value)   (((value) & 0x3) << 8)
 
#define SIDETONEEN   BIT(10)
 
#define ST_AUTOIDLE   BIT(0)
 
#define ST_CH0GAIN(value)   ((value) & 0xffff) /* Bits 0:15 */
 
#define ST_CH1GAIN(value)   (((value) & 0xffff) << 16) /* Bits 16:31 */
 
#define ST_FIRCOEFF(value)   ((value) & 0xffff) /* Bits 0:15 */
 
#define ST_SIDETONEEN   BIT(0)
 
#define ST_COEFFWREN   BIT(1)
 
#define ST_COEFFWRDONE   BIT(2)
 
#define MCBSP_DMA_MODE_ELEMENT   0
 
#define MCBSP_DMA_MODE_THRESHOLD   1
 
#define RSYNCERREN   BIT(0)
 
#define RFSREN   BIT(1)
 
#define REOFEN   BIT(2)
 
#define RRDYEN   BIT(3)
 
#define RUNDFLEN   BIT(4)
 
#define ROVFLEN   BIT(5)
 
#define XSYNCERREN   BIT(7)
 
#define XFSXEN   BIT(8)
 
#define XEOFEN   BIT(9)
 
#define XRDYEN   BIT(10)
 
#define XUNDFLEN   BIT(11)
 
#define XOVFLEN   BIT(12)
 
#define XEMPTYEOFEN   BIT(14)
 
#define CLKR_SRC_CLKR   0 /* CLKR signal is from the CLKR pin */
 
#define CLKR_SRC_CLKX   1 /* CLKR signal is from the CLKX pin */
 
#define FSR_SRC_FSR   2 /* FSR signal is from the FSR pin */
 
#define FSR_SRC_FSX   3 /* FSR signal is from the FSX pin */
 
#define MCBSP_CLKS_PRCM_SRC   0
 
#define MCBSP_CLKS_PAD_SRC   1
 

Enumerations

enum  {
  OMAP_MCBSP_REG_SPCR2 = 4, OMAP_MCBSP_REG_SPCR1, OMAP_MCBSP_REG_RCR2, OMAP_MCBSP_REG_RCR1,
  OMAP_MCBSP_REG_XCR2, OMAP_MCBSP_REG_XCR1, OMAP_MCBSP_REG_SRGR2, OMAP_MCBSP_REG_SRGR1,
  OMAP_MCBSP_REG_MCR2, OMAP_MCBSP_REG_MCR1, OMAP_MCBSP_REG_RCERA, OMAP_MCBSP_REG_RCERB,
  OMAP_MCBSP_REG_XCERA, OMAP_MCBSP_REG_XCERB, OMAP_MCBSP_REG_PCR0, OMAP_MCBSP_REG_RCERC,
  OMAP_MCBSP_REG_RCERD, OMAP_MCBSP_REG_XCERC, OMAP_MCBSP_REG_XCERD, OMAP_MCBSP_REG_RCERE,
  OMAP_MCBSP_REG_RCERF, OMAP_MCBSP_REG_XCERE, OMAP_MCBSP_REG_XCERF, OMAP_MCBSP_REG_RCERG,
  OMAP_MCBSP_REG_RCERH, OMAP_MCBSP_REG_XCERG, OMAP_MCBSP_REG_XCERH, OMAP_MCBSP_REG_DRR2 = 0,
  OMAP_MCBSP_REG_DRR1, OMAP_MCBSP_REG_DXR2, OMAP_MCBSP_REG_DXR1, OMAP_MCBSP_REG_DRR = 0,
  OMAP_MCBSP_REG_DXR = 2, OMAP_MCBSP_REG_SYSCON = 35, OMAP_MCBSP_REG_THRSH2, OMAP_MCBSP_REG_THRSH1,
  OMAP_MCBSP_REG_IRQST = 40, OMAP_MCBSP_REG_IRQEN, OMAP_MCBSP_REG_WAKEUPEN, OMAP_MCBSP_REG_XCCR,
  OMAP_MCBSP_REG_RCCR, OMAP_MCBSP_REG_XBUFFSTAT, OMAP_MCBSP_REG_RBUFFSTAT, OMAP_MCBSP_REG_SSELCR
}
 

Functions

void omap_mcbsp_config (struct omap_mcbsp *mcbsp, const struct omap_mcbsp_reg_cfg *config)
 
void omap_mcbsp_set_tx_threshold (struct omap_mcbsp *mcbsp, u16 threshold)
 
void omap_mcbsp_set_rx_threshold (struct omap_mcbsp *mcbsp, u16 threshold)
 
u16 omap_mcbsp_get_tx_delay (struct omap_mcbsp *mcbsp)
 
u16 omap_mcbsp_get_rx_delay (struct omap_mcbsp *mcbsp)
 
int omap_mcbsp_get_dma_op_mode (struct omap_mcbsp *mcbsp)
 
int omap_mcbsp_request (struct omap_mcbsp *mcbsp)
 
void omap_mcbsp_free (struct omap_mcbsp *mcbsp)
 
void omap_mcbsp_start (struct omap_mcbsp *mcbsp, int tx, int rx)
 
void omap_mcbsp_stop (struct omap_mcbsp *mcbsp, int tx, int rx)
 
int omap2_mcbsp_set_clks_src (struct omap_mcbsp *mcbsp, u8 fck_src_id)
 
int omap_st_set_chgain (struct omap_mcbsp *mcbsp, int channel, s16 chgain)
 
int omap_st_get_chgain (struct omap_mcbsp *mcbsp, int channel, s16 *chgain)
 
int omap_st_enable (struct omap_mcbsp *mcbsp)
 
int omap_st_disable (struct omap_mcbsp *mcbsp)
 
int omap_st_is_enabled (struct omap_mcbsp *mcbsp)
 
int __devinit omap_mcbsp_init (struct platform_device *pdev)
 
void __devexit omap_mcbsp_sysfs_remove (struct omap_mcbsp *mcbsp)
 

Macro Definition Documentation

#define ABIS   BIT(6)

Definition at line 97 of file mcbsp.h.

#define ALB   BIT(15)

Definition at line 101 of file mcbsp.h.

#define CLKGDV (   value)    ((value) & 0x7f) /* Bits 0:7 */

Definition at line 157 of file mcbsp.h.

#define CLKR_SRC_CLKR   0 /* CLKR signal is from the CLKR pin */

Definition at line 237 of file mcbsp.h.

#define CLKR_SRC_CLKX   1 /* CLKR signal is from the CLKX pin */

Definition at line 238 of file mcbsp.h.

#define CLKRM   BIT(8)

Definition at line 124 of file mcbsp.h.

#define CLKRP   BIT(0)

Definition at line 116 of file mcbsp.h.

#define CLKS_STAT   BIT(6)

Definition at line 122 of file mcbsp.h.

#define CLKSM   BIT(13)

Definition at line 163 of file mcbsp.h.

#define CLKSP   BIT(14)

Definition at line 164 of file mcbsp.h.

#define CLKSTP (   value)    (((value) & 0x3) << 11) /* bits 11:12 */

Definition at line 99 of file mcbsp.h.

#define CLKXM   BIT(9)

Definition at line 125 of file mcbsp.h.

#define CLKXP   BIT(1)

Definition at line 117 of file mcbsp.h.

#define CLOCKACTIVITY (   value)    (((value) & 0x3) << 8)

Definition at line 197 of file mcbsp.h.

#define DILB   BIT(5)

Definition at line 182 of file mcbsp.h.

#define DLB   BIT(15)

Definition at line 102 of file mcbsp.h.

#define DR_STAT   BIT(4)

Definition at line 120 of file mcbsp.h.

#define DX_STAT   BIT(5)

Definition at line 121 of file mcbsp.h.

#define DXENA   BIT(7)

Definition at line 98 of file mcbsp.h.

#define DXENDLY (   value)    (((value) & 0x3) << 12) /* Bits 12:13 */

Definition at line 184 of file mcbsp.h.

#define ENAWAKEUP   BIT(2)

Definition at line 195 of file mcbsp.h.

#define EXTCLKGATE   BIT(15)

Definition at line 186 of file mcbsp.h.

#define FPER (   value)    ((value) & 0x0fff) /* Bits 0:11 */

Definition at line 161 of file mcbsp.h.

#define FREE   BIT(9)

Definition at line 113 of file mcbsp.h.

#define FRST   BIT(7)

Definition at line 111 of file mcbsp.h.

#define FSGM   BIT(12)

Definition at line 162 of file mcbsp.h.

#define FSR_SRC_FSR   2 /* FSR signal is from the FSR pin */

Definition at line 239 of file mcbsp.h.

#define FSR_SRC_FSX   3 /* FSR signal is from the FSX pin */

Definition at line 240 of file mcbsp.h.

#define FSRM   BIT(10)

Definition at line 126 of file mcbsp.h.

#define FSRP   BIT(2)

Definition at line 118 of file mcbsp.h.

#define FSXM   BIT(11)

Definition at line 127 of file mcbsp.h.

#define FSXP   BIT(3)

Definition at line 119 of file mcbsp.h.

#define FWID (   value)    (((value) & 0xff) << 8) /* Bits 8:15 */

Definition at line 158 of file mcbsp.h.

#define GRST   BIT(6)

Definition at line 110 of file mcbsp.h.

#define GSYNC   BIT(15)

Definition at line 165 of file mcbsp.h.

#define IDLE_EN   BIT(14)

Definition at line 130 of file mcbsp.h.

#define MCBSP_CLKS_PAD_SRC   1

Definition at line 244 of file mcbsp.h.

#define MCBSP_CLKS_PRCM_SRC   0

Definition at line 243 of file mcbsp.h.

#define MCBSP_DMA_MODE_ELEMENT   0

Definition at line 218 of file mcbsp.h.

#define MCBSP_DMA_MODE_THRESHOLD   1

Definition at line 219 of file mcbsp.h.

#define OMAP_ST_REG_IRQENABLE   0x1C

Definition at line 86 of file mcbsp.h.

#define OMAP_ST_REG_IRQSTATUS   0x18

Definition at line 85 of file mcbsp.h.

#define OMAP_ST_REG_REV   0x00

Definition at line 83 of file mcbsp.h.

#define OMAP_ST_REG_SFIRCR   0x28

Definition at line 88 of file mcbsp.h.

#define OMAP_ST_REG_SGAINCR   0x24

Definition at line 87 of file mcbsp.h.

#define OMAP_ST_REG_SSELCR   0x2C

Definition at line 89 of file mcbsp.h.

#define OMAP_ST_REG_SYSCONFIG   0x10

Definition at line 84 of file mcbsp.h.

#define PPCONNECT   BIT(14)

Definition at line 185 of file mcbsp.h.

#define RCBLK (   value)    (((value) & 0x7) << 2) /* Bits 2:4 */

Definition at line 169 of file mcbsp.h.

#define RCOMPAND (   value)    (((value) & 0x3) << 3) /* Bits 3:4 */

Definition at line 143 of file mcbsp.h.

#define RDATDLY (   value)    ((value) & 0x3) /* Bits 0:1 */

Definition at line 141 of file mcbsp.h.

#define RDISABLE   BIT(0)

Definition at line 189 of file mcbsp.h.

#define RDMAEN   BIT(3)

Definition at line 190 of file mcbsp.h.

#define REOFEN   BIT(2)

Definition at line 224 of file mcbsp.h.

#define RFIG   BIT(2)

Definition at line 142 of file mcbsp.h.

#define RFRLEN1 (   value)    (((value) & 0x7f) << 8) /* Bits 8:14 */

Definition at line 134 of file mcbsp.h.

#define RFRLEN2 (   value)    (((value) & 0x7f) << 8) /* Bits 8:14 */

Definition at line 145 of file mcbsp.h.

#define RFSREN   BIT(1)

Definition at line 223 of file mcbsp.h.

#define RFULL   BIT(2)

Definition at line 94 of file mcbsp.h.

#define RFULL_CYCLE   BIT(11)

Definition at line 191 of file mcbsp.h.

#define RINTM (   value)    (((value) & 0x3) << 4) /* bits 4:5 */

Definition at line 96 of file mcbsp.h.

#define RIOEN   BIT(12)

Definition at line 128 of file mcbsp.h.

#define RJUST (   value)    (((value) & 0x3) << 13) /* bits 13:14 */

Definition at line 100 of file mcbsp.h.

#define RMCM   BIT(0)

Definition at line 168 of file mcbsp.h.

#define ROVFLEN   BIT(5)

Definition at line 227 of file mcbsp.h.

#define RPABLK (   value)    (((value) & 0x3) << 5) /* Bits 5:6 */

Definition at line 170 of file mcbsp.h.

#define RPBBLK (   value)    (((value) & 0x3) << 7) /* Bits 7:8 */

Definition at line 171 of file mcbsp.h.

#define RPHASE   BIT(15)

Definition at line 146 of file mcbsp.h.

#define RRDY   BIT(1)

Definition at line 93 of file mcbsp.h.

#define RRDYEN   BIT(3)

Definition at line 225 of file mcbsp.h.

#define RRST   BIT(0)

Definition at line 92 of file mcbsp.h.

#define RSYNC_ERR   BIT(3)

Definition at line 95 of file mcbsp.h.

#define RSYNCERREN   BIT(0)

Definition at line 222 of file mcbsp.h.

#define RUNDFLEN   BIT(4)

Definition at line 226 of file mcbsp.h.

#define RWDLEN1 (   value)    (((value) & 0x7) << 5) /* Bits 5:7 */

Definition at line 133 of file mcbsp.h.

#define RWDLEN2 (   value)    (((value) & 0x7) << 5) /* Bits 5:7 */

Definition at line 144 of file mcbsp.h.

#define SCLKME   BIT(7)

Definition at line 123 of file mcbsp.h.

#define SIDETONEEN   BIT(10)

Definition at line 200 of file mcbsp.h.

#define SIDLEMODE (   value)    (((value) & 0x3) << 3)

Definition at line 196 of file mcbsp.h.

#define SOFT   BIT(8)

Definition at line 112 of file mcbsp.h.

#define SOFTRST   BIT(1)

Definition at line 194 of file mcbsp.h.

#define ST_AUTOIDLE   BIT(0)

Definition at line 203 of file mcbsp.h.

#define ST_CH0GAIN (   value)    ((value) & 0xffff) /* Bits 0:15 */

Definition at line 206 of file mcbsp.h.

#define ST_CH1GAIN (   value)    (((value) & 0xffff) << 16) /* Bits 16:31 */

Definition at line 207 of file mcbsp.h.

#define ST_COEFFWRDONE   BIT(2)

Definition at line 215 of file mcbsp.h.

#define ST_COEFFWREN   BIT(1)

Definition at line 214 of file mcbsp.h.

#define ST_FIRCOEFF (   value)    ((value) & 0xffff) /* Bits 0:15 */

Definition at line 210 of file mcbsp.h.

#define ST_SIDETONEEN   BIT(0)

Definition at line 213 of file mcbsp.h.

#define XCBLK (   value)    (((value) & 0x7) << 2) /* Bits 2:4 */

Definition at line 175 of file mcbsp.h.

#define XCOMPAND (   value)    (((value) & 0x3) << 3) /* Bits 3:4 */

Definition at line 151 of file mcbsp.h.

#define XDATDLY (   value)    ((value) & 0x3) /* Bits 0:1 */

Definition at line 149 of file mcbsp.h.

#define XDISABLE   BIT(0)

Definition at line 180 of file mcbsp.h.

#define XDMAEN   BIT(3)

Definition at line 181 of file mcbsp.h.

#define XEMPTY   BIT(2)

Definition at line 107 of file mcbsp.h.

#define XEMPTYEOFEN   BIT(14)

Definition at line 234 of file mcbsp.h.

#define XEOFEN   BIT(9)

Definition at line 230 of file mcbsp.h.

#define XFIG   BIT(2)

Definition at line 150 of file mcbsp.h.

#define XFRLEN1 (   value)    (((value) & 0x7f) << 8) /* Bits 8:14 */

Definition at line 138 of file mcbsp.h.

#define XFRLEN2 (   value)    (((value) & 0x7f) << 8) /* Bits 8:14 */

Definition at line 153 of file mcbsp.h.

#define XFSXEN   BIT(8)

Definition at line 229 of file mcbsp.h.

#define XFULL_CYCLE   BIT(11)

Definition at line 183 of file mcbsp.h.

#define XINTM (   value)    (((value) & 0x3) << 4) /* bits 4:5 */

Definition at line 109 of file mcbsp.h.

#define XIOEN   BIT(13)

Definition at line 129 of file mcbsp.h.

#define XMCM (   value)    ((value) & 0x3) /* Bits 0:1 */

Definition at line 174 of file mcbsp.h.

#define XOVFLEN   BIT(12)

Definition at line 233 of file mcbsp.h.

#define XPABLK (   value)    (((value) & 0x3) << 5) /* Bits 5:6 */

Definition at line 176 of file mcbsp.h.

#define XPBBLK (   value)    (((value) & 0x3) << 7) /* Bits 7:8 */

Definition at line 177 of file mcbsp.h.

#define XPHASE   BIT(15)

Definition at line 154 of file mcbsp.h.

#define XRDY   BIT(1)

Definition at line 106 of file mcbsp.h.

#define XRDYEN   BIT(10)

Definition at line 231 of file mcbsp.h.

#define XRST   BIT(0)

Definition at line 105 of file mcbsp.h.

#define XSYNC_ERR   BIT(3)

Definition at line 108 of file mcbsp.h.

#define XSYNCERREN   BIT(7)

Definition at line 228 of file mcbsp.h.

#define XUNDFLEN   BIT(11)

Definition at line 232 of file mcbsp.h.

#define XWDLEN1 (   value)    (((value) & 0x7) << 5) /* Bits 5:7 */

Definition at line 137 of file mcbsp.h.

#define XWDLEN2 (   value)    (((value) & 0x7) << 5) /* Bits 5:7 */

Definition at line 152 of file mcbsp.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
OMAP_MCBSP_REG_SPCR2 
OMAP_MCBSP_REG_SPCR1 
OMAP_MCBSP_REG_RCR2 
OMAP_MCBSP_REG_RCR1 
OMAP_MCBSP_REG_XCR2 
OMAP_MCBSP_REG_XCR1 
OMAP_MCBSP_REG_SRGR2 
OMAP_MCBSP_REG_SRGR1 
OMAP_MCBSP_REG_MCR2 
OMAP_MCBSP_REG_MCR1 
OMAP_MCBSP_REG_RCERA 
OMAP_MCBSP_REG_RCERB 
OMAP_MCBSP_REG_XCERA 
OMAP_MCBSP_REG_XCERB 
OMAP_MCBSP_REG_PCR0 
OMAP_MCBSP_REG_RCERC 
OMAP_MCBSP_REG_RCERD 
OMAP_MCBSP_REG_XCERC 
OMAP_MCBSP_REG_XCERD 
OMAP_MCBSP_REG_RCERE 
OMAP_MCBSP_REG_RCERF 
OMAP_MCBSP_REG_XCERE 
OMAP_MCBSP_REG_XCERF 
OMAP_MCBSP_REG_RCERG 
OMAP_MCBSP_REG_RCERH 
OMAP_MCBSP_REG_XCERG 
OMAP_MCBSP_REG_XCERH 
OMAP_MCBSP_REG_DRR2 
OMAP_MCBSP_REG_DRR1 
OMAP_MCBSP_REG_DXR2 
OMAP_MCBSP_REG_DXR1 
OMAP_MCBSP_REG_DRR 
OMAP_MCBSP_REG_DXR 
OMAP_MCBSP_REG_SYSCON 
OMAP_MCBSP_REG_THRSH2 
OMAP_MCBSP_REG_THRSH1 
OMAP_MCBSP_REG_IRQST 
OMAP_MCBSP_REG_IRQEN 
OMAP_MCBSP_REG_WAKEUPEN 
OMAP_MCBSP_REG_XCCR 
OMAP_MCBSP_REG_RCCR 
OMAP_MCBSP_REG_XBUFFSTAT 
OMAP_MCBSP_REG_RBUFFSTAT 
OMAP_MCBSP_REG_SSELCR 

Definition at line 30 of file mcbsp.h.

Function Documentation

int omap2_mcbsp_set_clks_src ( struct omap_mcbsp mcbsp,
u8  fck_src_id 
)

Definition at line 730 of file mcbsp.c.

void omap_mcbsp_config ( struct omap_mcbsp mcbsp,
const struct omap_mcbsp_reg_cfg config 
)

Definition at line 198 of file mcbsp.c.

void omap_mcbsp_free ( struct omap_mcbsp mcbsp)

Definition at line 584 of file mcbsp.c.

int omap_mcbsp_get_dma_op_mode ( struct omap_mcbsp mcbsp)
u16 omap_mcbsp_get_rx_delay ( struct omap_mcbsp mcbsp)

Definition at line 489 of file mcbsp.c.

u16 omap_mcbsp_get_tx_delay ( struct omap_mcbsp mcbsp)

Definition at line 471 of file mcbsp.c.

int __devinit omap_mcbsp_init ( struct platform_device pdev)

Definition at line 962 of file mcbsp.c.

int omap_mcbsp_request ( struct omap_mcbsp mcbsp)

Definition at line 508 of file mcbsp.c.

void omap_mcbsp_set_rx_threshold ( struct omap_mcbsp mcbsp,
u16  threshold 
)

Definition at line 459 of file mcbsp.c.

void omap_mcbsp_set_tx_threshold ( struct omap_mcbsp mcbsp,
u16  threshold 
)

Definition at line 445 of file mcbsp.c.

void omap_mcbsp_start ( struct omap_mcbsp mcbsp,
int  tx,
int  rx 
)

Definition at line 635 of file mcbsp.c.

void omap_mcbsp_stop ( struct omap_mcbsp mcbsp,
int  tx,
int  rx 
)

Definition at line 692 of file mcbsp.c.

void __devexit omap_mcbsp_sysfs_remove ( struct omap_mcbsp mcbsp)

Definition at line 1090 of file mcbsp.c.

int omap_st_disable ( struct omap_mcbsp mcbsp)

Definition at line 414 of file mcbsp.c.

int omap_st_enable ( struct omap_mcbsp mcbsp)

Definition at line 385 of file mcbsp.c.

int omap_st_get_chgain ( struct omap_mcbsp mcbsp,
int  channel,
s16 chgain 
)

Definition at line 348 of file mcbsp.c.

int omap_st_is_enabled ( struct omap_mcbsp mcbsp)

Definition at line 430 of file mcbsp.c.

int omap_st_set_chgain ( struct omap_mcbsp mcbsp,
int  channel,
s16  chgain 
)

Definition at line 325 of file mcbsp.c.