diff options
author | Sangbeom Kim <sbkim73@samsung.com> | 2011-06-20 03:36:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-06-26 07:05:23 -0400 |
commit | 766705eef5d0faa9fc1e6a0cac95fc433bf5de70 (patch) | |
tree | c3fd0b38600f516df3679833e45078068035bf14 | |
parent | 172a453dcfe7de2f50c5e2d00107a734cf1dccc8 (diff) |
ASoC: SAMSUNG: Add idma related register definition
This patch add idma related register definitions to support idma.
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/samsung/i2s-regs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sound/soc/samsung/i2s-regs.h b/sound/soc/samsung/i2s-regs.h index 1fa0cd10153..c0e6d9a19ef 100644 --- a/sound/soc/samsung/i2s-regs.h +++ b/sound/soc/samsung/i2s-regs.h | |||
@@ -23,6 +23,14 @@ | |||
23 | #define I2SRXD 0x14 | 23 | #define I2SRXD 0x14 |
24 | #define I2SFICS 0x18 | 24 | #define I2SFICS 0x18 |
25 | #define I2STXDS 0x1c | 25 | #define I2STXDS 0x1c |
26 | #define I2SAHB 0x20 | ||
27 | #define I2SSTR0 0x24 | ||
28 | #define I2SSIZE 0x28 | ||
29 | #define I2STRNCNT 0x2c | ||
30 | #define I2SLVL0ADDR 0x30 | ||
31 | #define I2SLVL1ADDR 0x34 | ||
32 | #define I2SLVL2ADDR 0x38 | ||
33 | #define I2SLVL3ADDR 0x3c | ||
26 | 34 | ||
27 | #define CON_RSTCLR (1 << 31) | 35 | #define CON_RSTCLR (1 << 31) |
28 | #define CON_FRXOFSTATUS (1 << 26) | 36 | #define CON_FRXOFSTATUS (1 << 26) |
@@ -114,10 +122,22 @@ | |||
114 | 122 | ||
115 | #define FIC_TXFLUSH (1 << 15) | 123 | #define FIC_TXFLUSH (1 << 15) |
116 | #define FIC_RXFLUSH (1 << 7) | 124 | #define FIC_RXFLUSH (1 << 7) |
125 | |||
117 | #define FIC_TXCOUNT(x) (((x) >> 8) & 0xf) | 126 | #define FIC_TXCOUNT(x) (((x) >> 8) & 0xf) |
118 | #define FIC_RXCOUNT(x) (((x) >> 0) & 0xf) | 127 | #define FIC_RXCOUNT(x) (((x) >> 0) & 0xf) |
119 | #define FICS_TXCOUNT(x) (((x) >> 8) & 0x7f) | 128 | #define FICS_TXCOUNT(x) (((x) >> 8) & 0x7f) |
120 | 129 | ||
130 | #define AHB_INTENLVL0 (1 << 24) | ||
131 | #define AHB_LVL0INT (1 << 20) | ||
132 | #define AHB_CLRLVL0INT (1 << 16) | ||
133 | #define AHB_DMARLD (1 << 5) | ||
134 | #define AHB_INTMASK (1 << 3) | ||
135 | #define AHB_DMAEN (1 << 0) | ||
136 | #define AHB_LVLINTMASK (0xf << 20) | ||
137 | |||
138 | #define I2SSIZE_TRNMSK (0xffff) | ||
139 | #define I2SSIZE_SHIFT (16) | ||
140 | |||
121 | #endif /* __SND_SOC_SAMSUNG_I2S_REGS_H */ | 141 | #endif /* __SND_SOC_SAMSUNG_I2S_REGS_H */ |
122 | 142 | ||
123 | 143 | ||