Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
i2s-regs.h File Reference

Go to the source code of this file.

Macros

#define I2SCON   0x0
 
#define I2SMOD   0x4
 
#define I2SFIC   0x8
 
#define I2SPSR   0xc
 
#define I2STXD   0x10
 
#define I2SRXD   0x14
 
#define I2SFICS   0x18
 
#define I2STXDS   0x1c
 
#define I2SAHB   0x20
 
#define I2SSTR0   0x24
 
#define I2SSIZE   0x28
 
#define I2STRNCNT   0x2c
 
#define I2SLVL0ADDR   0x30
 
#define I2SLVL1ADDR   0x34
 
#define I2SLVL2ADDR   0x38
 
#define I2SLVL3ADDR   0x3c
 
#define CON_RSTCLR   (1 << 31)
 
#define CON_FRXOFSTATUS   (1 << 26)
 
#define CON_FRXORINTEN   (1 << 25)
 
#define CON_FTXSURSTAT   (1 << 24)
 
#define CON_FTXSURINTEN   (1 << 23)
 
#define CON_TXSDMA_PAUSE   (1 << 20)
 
#define CON_TXSDMA_ACTIVE   (1 << 18)
 
#define CON_FTXURSTATUS   (1 << 17)
 
#define CON_FTXURINTEN   (1 << 16)
 
#define CON_TXFIFO2_EMPTY   (1 << 15)
 
#define CON_TXFIFO1_EMPTY   (1 << 14)
 
#define CON_TXFIFO2_FULL   (1 << 13)
 
#define CON_TXFIFO1_FULL   (1 << 12)
 
#define CON_LRINDEX   (1 << 11)
 
#define CON_TXFIFO_EMPTY   (1 << 10)
 
#define CON_RXFIFO_EMPTY   (1 << 9)
 
#define CON_TXFIFO_FULL   (1 << 8)
 
#define CON_RXFIFO_FULL   (1 << 7)
 
#define CON_TXDMA_PAUSE   (1 << 6)
 
#define CON_RXDMA_PAUSE   (1 << 5)
 
#define CON_TXCH_PAUSE   (1 << 4)
 
#define CON_RXCH_PAUSE   (1 << 3)
 
#define CON_TXDMA_ACTIVE   (1 << 2)
 
#define CON_RXDMA_ACTIVE   (1 << 1)
 
#define CON_ACTIVE   (1 << 0)
 
#define MOD_OPCLK_CDCLK_OUT   (0 << 30)
 
#define MOD_OPCLK_CDCLK_IN   (1 << 30)
 
#define MOD_OPCLK_BCLK_OUT   (2 << 30)
 
#define MOD_OPCLK_PCLK   (3 << 30)
 
#define MOD_OPCLK_MASK   (3 << 30)
 
#define MOD_TXS_IDMA   (1 << 28) /* Sec_TXFIFO use I-DMA */
 
#define MOD_BLCS_SHIFT   26
 
#define MOD_BLCS_16BIT   (0 << MOD_BLCS_SHIFT)
 
#define MOD_BLCS_8BIT   (1 << MOD_BLCS_SHIFT)
 
#define MOD_BLCS_24BIT   (2 << MOD_BLCS_SHIFT)
 
#define MOD_BLCS_MASK   (3 << MOD_BLCS_SHIFT)
 
#define MOD_BLCP_SHIFT   24
 
#define MOD_BLCP_16BIT   (0 << MOD_BLCP_SHIFT)
 
#define MOD_BLCP_8BIT   (1 << MOD_BLCP_SHIFT)
 
#define MOD_BLCP_24BIT   (2 << MOD_BLCP_SHIFT)
 
#define MOD_BLCP_MASK   (3 << MOD_BLCP_SHIFT)
 
#define MOD_C2DD_HHALF   (1 << 21) /* Discard Higher-half */
 
#define MOD_C2DD_LHALF   (1 << 20) /* Discard Lower-half */
 
#define MOD_C1DD_HHALF   (1 << 19)
 
#define MOD_C1DD_LHALF   (1 << 18)
 
#define MOD_DC2_EN   (1 << 17)
 
#define MOD_DC1_EN   (1 << 16)
 
#define MOD_BLC_16BIT   (0 << 13)
 
#define MOD_BLC_8BIT   (1 << 13)
 
#define MOD_BLC_24BIT   (2 << 13)
 
#define MOD_BLC_MASK   (3 << 13)
 
#define MOD_IMS_SYSMUX   (1 << 10)
 
#define MOD_SLAVE   (1 << 11)
 
#define MOD_TXONLY   (0 << 8)
 
#define MOD_RXONLY   (1 << 8)
 
#define MOD_TXRX   (2 << 8)
 
#define MOD_MASK   (3 << 8)
 
#define MOD_LR_LLOW   (0 << 7)
 
#define MOD_LR_RLOW   (1 << 7)
 
#define MOD_SDF_IIS   (0 << 5)
 
#define MOD_SDF_MSB   (1 << 5)
 
#define MOD_SDF_LSB   (2 << 5)
 
#define MOD_SDF_MASK   (3 << 5)
 
#define MOD_RCLK_256FS   (0 << 3)
 
#define MOD_RCLK_512FS   (1 << 3)
 
#define MOD_RCLK_384FS   (2 << 3)
 
#define MOD_RCLK_768FS   (3 << 3)
 
#define MOD_RCLK_MASK   (3 << 3)
 
#define MOD_BCLK_32FS   (0 << 1)
 
#define MOD_BCLK_48FS   (1 << 1)
 
#define MOD_BCLK_16FS   (2 << 1)
 
#define MOD_BCLK_24FS   (3 << 1)
 
#define MOD_BCLK_MASK   (3 << 1)
 
#define MOD_8BIT   (1 << 0)
 
#define MOD_CDCLKCON   (1 << 12)
 
#define PSR_PSREN   (1 << 15)
 
#define FIC_TX2COUNT(x)   (((x) >> 24) & 0xf)
 
#define FIC_TX1COUNT(x)   (((x) >> 16) & 0xf)
 
#define FIC_TXFLUSH   (1 << 15)
 
#define FIC_RXFLUSH   (1 << 7)
 
#define FIC_TXCOUNT(x)   (((x) >> 8) & 0xf)
 
#define FIC_RXCOUNT(x)   (((x) >> 0) & 0xf)
 
#define FICS_TXCOUNT(x)   (((x) >> 8) & 0x7f)
 
#define AHB_INTENLVL0   (1 << 24)
 
#define AHB_LVL0INT   (1 << 20)
 
#define AHB_CLRLVL0INT   (1 << 16)
 
#define AHB_DMARLD   (1 << 5)
 
#define AHB_INTMASK   (1 << 3)
 
#define AHB_DMAEN   (1 << 0)
 
#define AHB_LVLINTMASK   (0xf << 20)
 
#define I2SSIZE_TRNMSK   (0xffff)
 
#define I2SSIZE_SHIFT   (16)
 

Macro Definition Documentation

#define AHB_CLRLVL0INT   (1 << 16)

Definition at line 132 of file i2s-regs.h.

#define AHB_DMAEN   (1 << 0)

Definition at line 135 of file i2s-regs.h.

#define AHB_DMARLD   (1 << 5)

Definition at line 133 of file i2s-regs.h.

#define AHB_INTENLVL0   (1 << 24)

Definition at line 130 of file i2s-regs.h.

#define AHB_INTMASK   (1 << 3)

Definition at line 134 of file i2s-regs.h.

#define AHB_LVL0INT   (1 << 20)

Definition at line 131 of file i2s-regs.h.

#define AHB_LVLINTMASK   (0xf << 20)

Definition at line 136 of file i2s-regs.h.

#define CON_ACTIVE   (1 << 0)

Definition at line 61 of file i2s-regs.h.

#define CON_FRXOFSTATUS   (1 << 26)

Definition at line 36 of file i2s-regs.h.

#define CON_FRXORINTEN   (1 << 25)

Definition at line 37 of file i2s-regs.h.

#define CON_FTXSURINTEN   (1 << 23)

Definition at line 39 of file i2s-regs.h.

#define CON_FTXSURSTAT   (1 << 24)

Definition at line 38 of file i2s-regs.h.

#define CON_FTXURINTEN   (1 << 16)

Definition at line 44 of file i2s-regs.h.

#define CON_FTXURSTATUS   (1 << 17)

Definition at line 43 of file i2s-regs.h.

#define CON_LRINDEX   (1 << 11)

Definition at line 50 of file i2s-regs.h.

#define CON_RSTCLR   (1 << 31)

Definition at line 35 of file i2s-regs.h.

#define CON_RXCH_PAUSE   (1 << 3)

Definition at line 58 of file i2s-regs.h.

#define CON_RXDMA_ACTIVE   (1 << 1)

Definition at line 60 of file i2s-regs.h.

#define CON_RXDMA_PAUSE   (1 << 5)

Definition at line 56 of file i2s-regs.h.

#define CON_RXFIFO_EMPTY   (1 << 9)

Definition at line 52 of file i2s-regs.h.

#define CON_RXFIFO_FULL   (1 << 7)

Definition at line 54 of file i2s-regs.h.

#define CON_TXCH_PAUSE   (1 << 4)

Definition at line 57 of file i2s-regs.h.

#define CON_TXDMA_ACTIVE   (1 << 2)

Definition at line 59 of file i2s-regs.h.

#define CON_TXDMA_PAUSE   (1 << 6)

Definition at line 55 of file i2s-regs.h.

#define CON_TXFIFO1_EMPTY   (1 << 14)

Definition at line 46 of file i2s-regs.h.

#define CON_TXFIFO1_FULL   (1 << 12)

Definition at line 48 of file i2s-regs.h.

#define CON_TXFIFO2_EMPTY   (1 << 15)

Definition at line 45 of file i2s-regs.h.

#define CON_TXFIFO2_FULL   (1 << 13)

Definition at line 47 of file i2s-regs.h.

#define CON_TXFIFO_EMPTY   (1 << 10)

Definition at line 51 of file i2s-regs.h.

#define CON_TXFIFO_FULL   (1 << 8)

Definition at line 53 of file i2s-regs.h.

#define CON_TXSDMA_ACTIVE   (1 << 18)

Definition at line 41 of file i2s-regs.h.

#define CON_TXSDMA_PAUSE   (1 << 20)

Definition at line 40 of file i2s-regs.h.

#define FIC_RXCOUNT (   x)    (((x) >> 0) & 0xf)

Definition at line 127 of file i2s-regs.h.

#define FIC_RXFLUSH   (1 << 7)

Definition at line 124 of file i2s-regs.h.

#define FIC_TX1COUNT (   x)    (((x) >> 16) & 0xf)

Definition at line 121 of file i2s-regs.h.

#define FIC_TX2COUNT (   x)    (((x) >> 24) & 0xf)

Definition at line 120 of file i2s-regs.h.

#define FIC_TXCOUNT (   x)    (((x) >> 8) & 0xf)

Definition at line 126 of file i2s-regs.h.

#define FIC_TXFLUSH   (1 << 15)

Definition at line 123 of file i2s-regs.h.

#define FICS_TXCOUNT (   x)    (((x) >> 8) & 0x7f)

Definition at line 128 of file i2s-regs.h.

#define I2SAHB   0x20

Definition at line 26 of file i2s-regs.h.

#define I2SCON   0x0

Definition at line 18 of file i2s-regs.h.

#define I2SFIC   0x8

Definition at line 20 of file i2s-regs.h.

#define I2SFICS   0x18

Definition at line 24 of file i2s-regs.h.

#define I2SLVL0ADDR   0x30

Definition at line 30 of file i2s-regs.h.

#define I2SLVL1ADDR   0x34

Definition at line 31 of file i2s-regs.h.

#define I2SLVL2ADDR   0x38

Definition at line 32 of file i2s-regs.h.

#define I2SLVL3ADDR   0x3c

Definition at line 33 of file i2s-regs.h.

#define I2SMOD   0x4

Definition at line 19 of file i2s-regs.h.

#define I2SPSR   0xc

Definition at line 21 of file i2s-regs.h.

#define I2SRXD   0x14

Definition at line 23 of file i2s-regs.h.

#define I2SSIZE   0x28

Definition at line 28 of file i2s-regs.h.

#define I2SSIZE_SHIFT   (16)

Definition at line 139 of file i2s-regs.h.

#define I2SSIZE_TRNMSK   (0xffff)

Definition at line 138 of file i2s-regs.h.

#define I2SSTR0   0x24

Definition at line 27 of file i2s-regs.h.

#define I2STRNCNT   0x2c

Definition at line 29 of file i2s-regs.h.

#define I2STXD   0x10

Definition at line 22 of file i2s-regs.h.

#define I2STXDS   0x1c

Definition at line 25 of file i2s-regs.h.

#define MOD_8BIT   (1 << 0)

Definition at line 114 of file i2s-regs.h.

#define MOD_BCLK_16FS   (2 << 1)

Definition at line 111 of file i2s-regs.h.

#define MOD_BCLK_24FS   (3 << 1)

Definition at line 112 of file i2s-regs.h.

#define MOD_BCLK_32FS   (0 << 1)

Definition at line 109 of file i2s-regs.h.

#define MOD_BCLK_48FS   (1 << 1)

Definition at line 110 of file i2s-regs.h.

#define MOD_BCLK_MASK   (3 << 1)

Definition at line 113 of file i2s-regs.h.

#define MOD_BLC_16BIT   (0 << 13)

Definition at line 87 of file i2s-regs.h.

#define MOD_BLC_24BIT   (2 << 13)

Definition at line 89 of file i2s-regs.h.

#define MOD_BLC_8BIT   (1 << 13)

Definition at line 88 of file i2s-regs.h.

#define MOD_BLC_MASK   (3 << 13)

Definition at line 90 of file i2s-regs.h.

#define MOD_BLCP_16BIT   (0 << MOD_BLCP_SHIFT)

Definition at line 76 of file i2s-regs.h.

#define MOD_BLCP_24BIT   (2 << MOD_BLCP_SHIFT)

Definition at line 78 of file i2s-regs.h.

#define MOD_BLCP_8BIT   (1 << MOD_BLCP_SHIFT)

Definition at line 77 of file i2s-regs.h.

#define MOD_BLCP_MASK   (3 << MOD_BLCP_SHIFT)

Definition at line 79 of file i2s-regs.h.

#define MOD_BLCP_SHIFT   24

Definition at line 75 of file i2s-regs.h.

#define MOD_BLCS_16BIT   (0 << MOD_BLCS_SHIFT)

Definition at line 71 of file i2s-regs.h.

#define MOD_BLCS_24BIT   (2 << MOD_BLCS_SHIFT)

Definition at line 73 of file i2s-regs.h.

#define MOD_BLCS_8BIT   (1 << MOD_BLCS_SHIFT)

Definition at line 72 of file i2s-regs.h.

#define MOD_BLCS_MASK   (3 << MOD_BLCS_SHIFT)

Definition at line 74 of file i2s-regs.h.

#define MOD_BLCS_SHIFT   26

Definition at line 70 of file i2s-regs.h.

#define MOD_C1DD_HHALF   (1 << 19)

Definition at line 83 of file i2s-regs.h.

#define MOD_C1DD_LHALF   (1 << 18)

Definition at line 84 of file i2s-regs.h.

#define MOD_C2DD_HHALF   (1 << 21) /* Discard Higher-half */

Definition at line 81 of file i2s-regs.h.

#define MOD_C2DD_LHALF   (1 << 20) /* Discard Lower-half */

Definition at line 82 of file i2s-regs.h.

#define MOD_CDCLKCON   (1 << 12)

Definition at line 116 of file i2s-regs.h.

#define MOD_DC1_EN   (1 << 16)

Definition at line 86 of file i2s-regs.h.

#define MOD_DC2_EN   (1 << 17)

Definition at line 85 of file i2s-regs.h.

#define MOD_IMS_SYSMUX   (1 << 10)

Definition at line 92 of file i2s-regs.h.

#define MOD_LR_LLOW   (0 << 7)

Definition at line 98 of file i2s-regs.h.

#define MOD_LR_RLOW   (1 << 7)

Definition at line 99 of file i2s-regs.h.

#define MOD_MASK   (3 << 8)

Definition at line 97 of file i2s-regs.h.

#define MOD_OPCLK_BCLK_OUT   (2 << 30)

Definition at line 65 of file i2s-regs.h.

#define MOD_OPCLK_CDCLK_IN   (1 << 30)

Definition at line 64 of file i2s-regs.h.

#define MOD_OPCLK_CDCLK_OUT   (0 << 30)

Definition at line 63 of file i2s-regs.h.

#define MOD_OPCLK_MASK   (3 << 30)

Definition at line 67 of file i2s-regs.h.

#define MOD_OPCLK_PCLK   (3 << 30)

Definition at line 66 of file i2s-regs.h.

#define MOD_RCLK_256FS   (0 << 3)

Definition at line 104 of file i2s-regs.h.

#define MOD_RCLK_384FS   (2 << 3)

Definition at line 106 of file i2s-regs.h.

#define MOD_RCLK_512FS   (1 << 3)

Definition at line 105 of file i2s-regs.h.

#define MOD_RCLK_768FS   (3 << 3)

Definition at line 107 of file i2s-regs.h.

#define MOD_RCLK_MASK   (3 << 3)

Definition at line 108 of file i2s-regs.h.

#define MOD_RXONLY   (1 << 8)

Definition at line 95 of file i2s-regs.h.

#define MOD_SDF_IIS   (0 << 5)

Definition at line 100 of file i2s-regs.h.

#define MOD_SDF_LSB   (2 << 5)

Definition at line 102 of file i2s-regs.h.

#define MOD_SDF_MASK   (3 << 5)

Definition at line 103 of file i2s-regs.h.

#define MOD_SDF_MSB   (1 << 5)

Definition at line 101 of file i2s-regs.h.

#define MOD_SLAVE   (1 << 11)

Definition at line 93 of file i2s-regs.h.

#define MOD_TXONLY   (0 << 8)

Definition at line 94 of file i2s-regs.h.

#define MOD_TXRX   (2 << 8)

Definition at line 96 of file i2s-regs.h.

#define MOD_TXS_IDMA   (1 << 28) /* Sec_TXFIFO use I-DMA */

Definition at line 68 of file i2s-regs.h.

#define PSR_PSREN   (1 << 15)

Definition at line 118 of file i2s-regs.h.