summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/i2s-regs.h
diff options
context:
space:
mode:
authorPadmavathi Venna2013-08-12 11:49:52 +0200
committerMark Brown2013-08-13 14:44:09 +0200
commit4ca0c0d4784fa82d68733f7793e3487023e12282 (patch)
treef5dfe6ed90617527f19fe399e4af8265a9074cf4 /sound/soc/samsung/i2s-regs.h
parentASoC: Samsung: I2S: Add quirks as driver data in I2S (diff)
downloadkernel-qcow2-linux-4ca0c0d4784fa82d68733f7793e3487023e12282.tar.gz
kernel-qcow2-linux-4ca0c0d4784fa82d68733f7793e3487023e12282.tar.xz
kernel-qcow2-linux-4ca0c0d4784fa82d68733f7793e3487023e12282.zip
ASoC: Samsung: I2S: Modify the I2S driver to support I2S on Exynos5420
Exynos5420 added support for I2S TDM mode. For this, there are some register changes in the I2S controller. This patch adds the relevant register changes to support I2S in normal mode. This patch adds a quirk for TDM mode and if TDM mode is present all the relevent changes will be applied. Signed-off-by: Padmavathi Venna <padma.v@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/samsung/i2s-regs.h')
-rw-r--r--sound/soc/samsung/i2s-regs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/soc/samsung/i2s-regs.h b/sound/soc/samsung/i2s-regs.h
index 30513b7ede3a..821a50231002 100644
--- a/sound/soc/samsung/i2s-regs.h
+++ b/sound/soc/samsung/i2s-regs.h
@@ -31,6 +31,10 @@
#define I2SLVL1ADDR 0x34
#define I2SLVL2ADDR 0x38
#define I2SLVL3ADDR 0x3c
+#define I2SSTR1 0x40
+#define I2SVER 0x44
+#define I2SFIC2 0x48
+#define I2STDM 0x4c
#define CON_RSTCLR (1 << 31)
#define CON_FRXOFSTATUS (1 << 26)
@@ -117,6 +121,17 @@
#define MOD_BCLK_MASK 3
#define MOD_8BIT (1 << 0)
+#define EXYNOS5420_MOD_LRP_SHIFT 15
+#define EXYNOS5420_MOD_SDF_SHIFT 6
+#define EXYNOS5420_MOD_RCLK_SHIFT 4
+#define EXYNOS5420_MOD_BCLK_SHIFT 0
+#define EXYNOS5420_MOD_BCLK_64FS 4
+#define EXYNOS5420_MOD_BCLK_96FS 5
+#define EXYNOS5420_MOD_BCLK_128FS 6
+#define EXYNOS5420_MOD_BCLK_192FS 7
+#define EXYNOS5420_MOD_BCLK_256FS 8
+#define EXYNOS5420_MOD_BCLK_MASK 0xf
+
#define MOD_CDCLKCON (1 << 12)
#define PSR_PSREN (1 << 15)