Commit | Line | Data |
---|---|---|
b67f4487 C |
1 | /* |
2 | * ALSA SoC McASP Audio Layer for TI DAVINCI processor | |
3 | * | |
4 | * MCASP related definitions | |
5 | * | |
6 | * Author: Nirmal Pandey <n-pandey@ti.com>, | |
7 | * Suresh Rajashekara <suresh.r@ti.com> | |
8 | * Steve Chen <schen@.mvista.com> | |
9 | * | |
10 | * Copyright: (C) 2009 MontaVista Software, Inc., <source@mvista.com> | |
11 | * Copyright: (C) 2009 Texas Instruments, India | |
12 | * | |
13 | * This program is free software; you can redistribute it and/or modify | |
14 | * it under the terms of the GNU General Public License version 2 as | |
15 | * published by the Free Software Foundation. | |
16 | */ | |
17 | ||
18 | #ifndef DAVINCI_MCASP_H | |
19 | #define DAVINCI_MCASP_H | |
20 | ||
21 | #include <linux/io.h> | |
896f66b7 HG |
22 | #include <linux/platform_data/davinci_asp.h> |
23 | ||
b67f4487 C |
24 | #include "davinci-pcm.h" |
25 | ||
393a53cb | 26 | #define DAVINCI_MCASP_RATES SNDRV_PCM_RATE_8000_192000 |
b67f4487 C |
27 | #define DAVINCI_MCASP_I2S_DAI 0 |
28 | #define DAVINCI_MCASP_DIT_DAI 1 | |
29 | ||
b67f4487 | 30 | struct davinci_audio_dev { |
92e2a6f6 | 31 | struct davinci_pcm_dma_params dma_params[2]; |
b67f4487 | 32 | void __iomem *base; |
10884347 | 33 | struct device *dev; |
b67f4487 C |
34 | |
35 | /* McASP specific data */ | |
36 | int tdm_slots; | |
37 | u8 op_mode; | |
38 | u8 num_serializer; | |
39 | u8 *serial_dir; | |
6a99fb5f | 40 | u8 version; |
d486fea6 | 41 | u16 bclk_lrclk_ratio; |
6a99fb5f C |
42 | |
43 | /* McASP FIFO related */ | |
44 | u8 txnumevt; | |
45 | u8 rxnumevt; | |
b67f4487 C |
46 | }; |
47 | ||
48 | #endif /* DAVINCI_MCASP_H */ |