diff options
author | Jassi Brar <jassi.brar@samsung.com> | 2010-04-27 02:56:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-05-05 10:11:02 -0400 |
commit | b720d56294187ea4167a20e59c4ea0bb4f064132 (patch) | |
tree | 101c13fafe28e7032de448844629280a782e0d73 /sound/soc/s3c24xx/regs-i2s-v2.h | |
parent | d07e7ce9b6fd1a4ff0a6b40c74fbecdc584a135b (diff) |
ASoC: SAMSUNG: I2S: Add bit definitions
Define more bit definitions in the order of mainline
support for the SoC.
Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/s3c24xx/regs-i2s-v2.h')
-rw-r--r-- | sound/soc/s3c24xx/regs-i2s-v2.h | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/sound/soc/s3c24xx/regs-i2s-v2.h b/sound/soc/s3c24xx/regs-i2s-v2.h index abf2fbc2eb2f..f3d90289e7be 100644 --- a/sound/soc/s3c24xx/regs-i2s-v2.h +++ b/sound/soc/s3c24xx/regs-i2s-v2.h | |||
@@ -20,6 +20,24 @@ | |||
20 | #define S3C2412_IISTXD (0x10) | 20 | #define S3C2412_IISTXD (0x10) |
21 | #define S3C2412_IISRXD (0x14) | 21 | #define S3C2412_IISRXD (0x14) |
22 | 22 | ||
23 | #define S5PC1XX_IISFICS 0x18 | ||
24 | #define S5PC1XX_IISTXDS 0x1C | ||
25 | |||
26 | #define S5PC1XX_IISCON_SW_RST (1 << 31) | ||
27 | #define S5PC1XX_IISCON_FRXOFSTATUS (1 << 26) | ||
28 | #define S5PC1XX_IISCON_FRXORINTEN (1 << 25) | ||
29 | #define S5PC1XX_IISCON_FTXSURSTAT (1 << 24) | ||
30 | #define S5PC1XX_IISCON_FTXSURINTEN (1 << 23) | ||
31 | #define S5PC1XX_IISCON_TXSDMAPAUSE (1 << 20) | ||
32 | #define S5PC1XX_IISCON_TXSDMACTIVE (1 << 18) | ||
33 | |||
34 | #define S3C64XX_IISCON_FTXURSTATUS (1 << 17) | ||
35 | #define S3C64XX_IISCON_FTXURINTEN (1 << 16) | ||
36 | #define S3C64XX_IISCON_TXFIFO2_EMPTY (1 << 15) | ||
37 | #define S3C64XX_IISCON_TXFIFO1_EMPTY (1 << 14) | ||
38 | #define S3C64XX_IISCON_TXFIFO2_FULL (1 << 13) | ||
39 | #define S3C64XX_IISCON_TXFIFO1_FULL (1 << 12) | ||
40 | |||
23 | #define S3C2412_IISCON_LRINDEX (1 << 11) | 41 | #define S3C2412_IISCON_LRINDEX (1 << 11) |
24 | #define S3C2412_IISCON_TXFIFO_EMPTY (1 << 10) | 42 | #define S3C2412_IISCON_TXFIFO_EMPTY (1 << 10) |
25 | #define S3C2412_IISCON_RXFIFO_EMPTY (1 << 9) | 43 | #define S3C2412_IISCON_RXFIFO_EMPTY (1 << 9) |
@@ -33,6 +51,23 @@ | |||
33 | #define S3C2412_IISCON_RXDMA_ACTIVE (1 << 1) | 51 | #define S3C2412_IISCON_RXDMA_ACTIVE (1 << 1) |
34 | #define S3C2412_IISCON_IIS_ACTIVE (1 << 0) | 52 | #define S3C2412_IISCON_IIS_ACTIVE (1 << 0) |
35 | 53 | ||
54 | #define S5PC1XX_IISMOD_OPCLK_CDCLK_OUT (0 << 30) | ||
55 | #define S5PC1XX_IISMOD_OPCLK_CDCLK_IN (1 << 30) | ||
56 | #define S5PC1XX_IISMOD_OPCLK_BCLK_OUT (2 << 30) | ||
57 | #define S5PC1XX_IISMOD_OPCLK_PCLK (3 << 30) | ||
58 | #define S5PC1XX_IISMOD_OPCLK_MASK (3 << 30) | ||
59 | #define S5PC1XX_IISMOD_TXS_IDMA (1 << 28) /* Sec_TXFIFO use I-DMA */ | ||
60 | #define S5PC1XX_IISMOD_BLCS_MASK 0x3 | ||
61 | #define S5PC1XX_IISMOD_BLCS_SHIFT 26 | ||
62 | #define S5PC1XX_IISMOD_BLCP_MASK 0x3 | ||
63 | #define S5PC1XX_IISMOD_BLCP_SHIFT 24 | ||
64 | |||
65 | #define S3C64XX_IISMOD_C2DD_HHALF (1 << 21) /* Discard Higher-half */ | ||
66 | #define S3C64XX_IISMOD_C2DD_LHALF (1 << 20) /* Discard Lower-half */ | ||
67 | #define S3C64XX_IISMOD_C1DD_HHALF (1 << 19) | ||
68 | #define S3C64XX_IISMOD_C1DD_LHALF (1 << 18) | ||
69 | #define S3C64XX_IISMOD_DC2_EN (1 << 17) | ||
70 | #define S3C64XX_IISMOD_DC1_EN (1 << 16) | ||
36 | #define S3C64XX_IISMOD_BLC_16BIT (0 << 13) | 71 | #define S3C64XX_IISMOD_BLC_16BIT (0 << 13) |
37 | #define S3C64XX_IISMOD_BLC_8BIT (1 << 13) | 72 | #define S3C64XX_IISMOD_BLC_8BIT (1 << 13) |
38 | #define S3C64XX_IISMOD_BLC_24BIT (2 << 13) | 73 | #define S3C64XX_IISMOD_BLC_24BIT (2 << 13) |
@@ -71,12 +106,15 @@ | |||
71 | 106 | ||
72 | #define S3C2412_IISPSR_PSREN (1 << 15) | 107 | #define S3C2412_IISPSR_PSREN (1 << 15) |
73 | 108 | ||
109 | #define S3C64XX_IISFIC_TX2COUNT(x) (((x) >> 24) & 0xf) | ||
110 | #define S3C64XX_IISFIC_TX1COUNT(x) (((x) >> 16) & 0xf) | ||
111 | |||
74 | #define S3C2412_IISFIC_TXFLUSH (1 << 15) | 112 | #define S3C2412_IISFIC_TXFLUSH (1 << 15) |
75 | #define S3C2412_IISFIC_RXFLUSH (1 << 7) | 113 | #define S3C2412_IISFIC_RXFLUSH (1 << 7) |
76 | #define S3C2412_IISFIC_TXCOUNT(x) (((x) >> 8) & 0xf) | 114 | #define S3C2412_IISFIC_TXCOUNT(x) (((x) >> 8) & 0xf) |
77 | #define S3C2412_IISFIC_RXCOUNT(x) (((x) >> 0) & 0xf) | 115 | #define S3C2412_IISFIC_RXCOUNT(x) (((x) >> 0) & 0xf) |
78 | 116 | ||
79 | 117 | #define S5PC1XX_IISFICS_TXFLUSH (1 << 15) | |
118 | #define S5PC1XX_IISFICS_TXCOUNT(x) (((x) >> 8) & 0x7f) | ||
80 | 119 | ||
81 | #endif /* __ASM_ARCH_REGS_S3C2412_IIS_H */ | 120 | #endif /* __ASM_ARCH_REGS_S3C2412_IIS_H */ |
82 | |||