| 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> |
| 22 | #include <linux/platform_data/davinci_asp.h> |
| 23 | |
| 24 | #include "davinci-pcm.h" |
| 25 | |
| 26 | struct davinci_audio_dev { |
| 27 | struct davinci_pcm_dma_params dma_params[2]; |
| 28 | void __iomem *base; |
| 29 | struct device *dev; |
| 30 | |
| 31 | /* McASP specific data */ |
| 32 | int tdm_slots; |
| 33 | u8 op_mode; |
| 34 | u8 num_serializer; |
| 35 | u8 *serial_dir; |
| 36 | u8 version; |
| 37 | u16 bclk_lrclk_ratio; |
| 38 | |
| 39 | /* McASP FIFO related */ |
| 40 | u8 txnumevt; |
| 41 | u8 rxnumevt; |
| 42 | |
| 43 | #ifdef CONFIG_PM_SLEEP |
| 44 | struct { |
| 45 | u32 txfmtctl; |
| 46 | u32 rxfmtctl; |
| 47 | u32 txfmt; |
| 48 | u32 rxfmt; |
| 49 | u32 aclkxctl; |
| 50 | u32 aclkrctl; |
| 51 | u32 pdir; |
| 52 | } context; |
| 53 | #endif |
| 54 | }; |
| 55 | |
| 56 | #endif /* DAVINCI_MCASP_H */ |