diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2013-11-14 04:35:26 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-10 06:22:15 -0500 |
commit | 21400a72d6bba3d233161ad131e36b6b7f78381e (patch) | |
tree | 4804cbe117a0b4c06b818d9f7b6a7babc4a460ad /sound/soc/davinci | |
parent | 02e08d9b6bd67784d4c58e659c21674b31972c34 (diff) |
ASoC: davinci-mcasp: Move private struct definition to source file
Since it is a private struct strictly used by the davinci-mcasp driver it
can be moved from header file to the source file.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/davinci')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 30 | ||||
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.h | 35 |
2 files changed, 30 insertions, 35 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); |
diff --git a/sound/soc/davinci/davinci-mcasp.h b/sound/soc/davinci/davinci-mcasp.h index 619b98befc84..80e5a1846687 100644 --- a/sound/soc/davinci/davinci-mcasp.h +++ b/sound/soc/davinci/davinci-mcasp.h | |||
@@ -18,11 +18,6 @@ | |||
18 | #ifndef DAVINCI_MCASP_H | 18 | #ifndef DAVINCI_MCASP_H |
19 | #define DAVINCI_MCASP_H | 19 | #define DAVINCI_MCASP_H |
20 | 20 | ||
21 | #include <linux/io.h> | ||
22 | #include <linux/platform_data/davinci_asp.h> | ||
23 | |||
24 | #include "davinci-pcm.h" | ||
25 | |||
26 | /* | 21 | /* |
27 | * McASP register definitions | 22 | * McASP register definitions |
28 | */ | 23 | */ |
@@ -290,34 +285,4 @@ | |||
290 | #define NUMEVT_MASK (0xFF << 8) | 285 | #define NUMEVT_MASK (0xFF << 8) |
291 | #define NUMDMA_MASK (0xFF) | 286 | #define NUMDMA_MASK (0xFF) |
292 | 287 | ||
293 | struct davinci_audio_dev { | ||
294 | struct davinci_pcm_dma_params dma_params[2]; | ||
295 | void __iomem *base; | ||
296 | struct device *dev; | ||
297 | |||
298 | /* McASP specific data */ | ||
299 | int tdm_slots; | ||
300 | u8 op_mode; | ||
301 | u8 num_serializer; | ||
302 | u8 *serial_dir; | ||
303 | u8 version; | ||
304 | u16 bclk_lrclk_ratio; | ||
305 | |||
306 | /* McASP FIFO related */ | ||
307 | u8 txnumevt; | ||
308 | u8 rxnumevt; | ||
309 | |||
310 | #ifdef CONFIG_PM_SLEEP | ||
311 | struct { | ||
312 | u32 txfmtctl; | ||
313 | u32 rxfmtctl; | ||
314 | u32 txfmt; | ||
315 | u32 rxfmt; | ||
316 | u32 aclkxctl; | ||
317 | u32 aclkrctl; | ||
318 | u32 pdir; | ||
319 | } context; | ||
320 | #endif | ||
321 | }; | ||
322 | |||
323 | #endif /* DAVINCI_MCASP_H */ | 288 | #endif /* DAVINCI_MCASP_H */ |