summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-05-17 17:36:47 -0700
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-19 19:41:45 +0100
commit766812e6d5e2e23be1e212cf84902d5e834dd865 (patch)
treefb8cdf68c82b9652e5a96b8eab444c7f22d86f3f /include
parentf33238e96f619d9888713c07dcd92e4518879282 (diff)
downloadop-kernel-dev-766812e6d5e2e23be1e212cf84902d5e834dd865.zip
op-kernel-dev-766812e6d5e2e23be1e212cf84902d5e834dd865.tar.gz
ASoC: sh: fsi: enable chip specific data transfer mode
SupherH FSI2 can use special data transfer, but it depends on CPU-FSI2 connection style. We can use 16bit data stream mode if it was valid connection, and it is required for 16bit data DMA transfer / SPDIF sound output. We can use 24bit data transfer if it was invalid connection. We can select connection type if CPU is SH7372, and it is always valid connection if latest SuperH. This patch adds new bus_option and fsi_bus_setup() for supporting these feature. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r--include/sound/sh_fsi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/sound/sh_fsi.h b/include/sound/sh_fsi.h
index 956e30e..9060103 100644
--- a/include/sound/sh_fsi.h
+++ b/include/sound/sh_fsi.h
@@ -21,10 +21,11 @@
/*
* flags format
*
- * 0x000000BA
+ * 0x00000CBA
*
* A: inversion
* B: format mode
+ * C: chip specific
*/
/* A: clock inversion */
@@ -39,6 +40,9 @@
#define SH_FSI_FMT_DAI (0 << 4)
#define SH_FSI_FMT_SPDIF (1 << 4)
+/* C: chip specific */
+#define SH_FSI_OPTION_MASK 0x00000F00
+#define SH_FSI_ENABLE_STREAM_MODE (1 << 8) /* for 16bit data */
/*
* set_rate return value
OpenPOWER on IntegriCloud