aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/sh_fsi.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/sound/sh_fsi.h
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'include/sound/sh_fsi.h')
-rw-r--r--include/sound/sh_fsi.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/include/sound/sh_fsi.h b/include/sound/sh_fsi.h
index cc1c919c643..9a155f9d0a1 100644
--- a/include/sound/sh_fsi.h
+++ b/include/sound/sh_fsi.h
@@ -21,12 +21,10 @@
21/* 21/*
22 * flags format 22 * flags format
23 * 23 *
24 * 0x00000CBA 24 * 0x000000BA
25 * 25 *
26 * A: inversion 26 * A: inversion
27 * B: format mode 27 * B: format mode
28 * C: chip specific
29 * D: clock selecter if master mode
30 */ 28 */
31 29
32/* A: clock inversion */ 30/* A: clock inversion */
@@ -41,14 +39,6 @@
41#define SH_FSI_FMT_DAI (0 << 4) 39#define SH_FSI_FMT_DAI (0 << 4)
42#define SH_FSI_FMT_SPDIF (1 << 4) 40#define SH_FSI_FMT_SPDIF (1 << 4)
43 41
44/* C: chip specific */
45#define SH_FSI_OPTION_MASK 0x00000F00
46#define SH_FSI_ENABLE_STREAM_MODE (1 << 8) /* for 16bit data */
47
48/* D: clock selecter if master mode */
49#define SH_FSI_CLK_MASK 0x0000F000
50#define SH_FSI_CLK_EXTERNAL (0 << 12)
51#define SH_FSI_CLK_CPG (1 << 12) /* FSIxCK + FSI-DIV */
52 42
53/* 43/*
54 * set_rate return value 44 * set_rate return value
@@ -82,16 +72,10 @@
82#define SH_FSI_BPFMD_32 (5 << 4) 72#define SH_FSI_BPFMD_32 (5 << 4)
83#define SH_FSI_BPFMD_16 (6 << 4) 73#define SH_FSI_BPFMD_16 (6 << 4)
84 74
85struct sh_fsi_port_info {
86 unsigned long flags;
87 int tx_id;
88 int rx_id;
89 int (*set_rate)(struct device *dev, int rate, int enable);
90};
91
92struct sh_fsi_platform_info { 75struct sh_fsi_platform_info {
93 struct sh_fsi_port_info port_a; 76 unsigned long porta_flags;
94 struct sh_fsi_port_info port_b; 77 unsigned long portb_flags;
78 int (*set_rate)(struct device *dev, int is_porta, int rate, int enable);
95}; 79};
96 80
97#endif /* __SOUND_FSI_H */ 81#endif /* __SOUND_FSI_H */