diff options
Diffstat (limited to 'sound/soc/davinci/davinci-mcasp.c')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 1c1585e18eae..70107956dd0c 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -37,6 +37,36 @@ | |||
37 | 37 | ||
38 | #define DAVINCI_MCASP_NUM_SERIALIZER 16 | 38 | #define DAVINCI_MCASP_NUM_SERIALIZER 16 |
39 | 39 | ||
40 | struct davinci_audio_dev { | ||
41 | struct davinci_pcm_dma_params dma_params[2]; | ||
42 | void __iomem *base; | ||
43 | struct device *dev; | ||
44 | |||
45 | /* McASP specific data */ | ||
46 | int tdm_slots; | ||
47 | u8 op_mode; | ||
48 | u8 num_serializer; | ||
49 | u8 *serial_dir; | ||
50 | u8 version; | ||
51 | u16 bclk_lrclk_ratio; | ||
52 | |||
53 | /* McASP FIFO related */ | ||
54 | u8 txnumevt; | ||
55 | u8 rxnumevt; | ||
56 | |||
57 | #ifdef CONFIG_PM_SLEEP | ||
58 | struct { | ||
59 | u32 txfmtctl; | ||
60 | u32 rxfmtctl; | ||
61 | u32 txfmt; | ||
62 | u32 rxfmt; | ||
63 | u32 aclkxctl; | ||
64 | u32 aclkrctl; | ||
65 | u32 pdir; | ||
66 | } context; | ||
67 | #endif | ||
68 | }; | ||
69 | |||
40 | static inline void mcasp_set_bits(void __iomem *reg, u32 val) | 70 | static inline void mcasp_set_bits(void __iomem *reg, u32 val) |
41 | { | 71 | { |
42 | __raw_writel(__raw_readl(reg) | val, reg); | 72 | __raw_writel(__raw_readl(reg) | val, reg); |