| 
									
										
										
										
											2009-06-05 06:28:40 -04:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * ALSA SoC McASP Audio Layer for TI DAVINCI processor | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * MCASP related definitions | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Author: Nirmal Pandey <n-pandey@ti.com>, | 
					
						
							|  |  |  |  *         Suresh Rajashekara <suresh.r@ti.com> | 
					
						
							|  |  |  |  *         Steve Chen <schen@.mvista.com> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Copyright:   (C) 2009 MontaVista Software, Inc., <source@mvista.com> | 
					
						
							|  |  |  |  * Copyright:   (C) 2009  Texas Instruments, India | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License version 2 as | 
					
						
							|  |  |  |  * published by the Free Software Foundation. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef DAVINCI_MCASP_H
 | 
					
						
							|  |  |  | #define DAVINCI_MCASP_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <linux/io.h>
 | 
					
						
							| 
									
										
										
										
											2012-08-27 18:56:41 +05:30
										 |  |  | #include <linux/platform_data/davinci_asp.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-05 06:28:40 -04:00
										 |  |  | #include "davinci-pcm.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-10-04 15:08:38 +02:00
										 |  |  | #define DAVINCI_MCASP_RATES	SNDRV_PCM_RATE_8000_192000
 | 
					
						
							| 
									
										
										
										
											2009-06-05 06:28:40 -04:00
										 |  |  | #define DAVINCI_MCASP_I2S_DAI	0
 | 
					
						
							|  |  |  | #define DAVINCI_MCASP_DIT_DAI	1
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct davinci_audio_dev { | 
					
						
							| 
									
										
										
										
											2009-09-11 14:29:03 -07:00
										 |  |  | 	struct davinci_pcm_dma_params dma_params[2]; | 
					
						
							| 
									
										
										
										
											2009-06-05 06:28:40 -04:00
										 |  |  | 	void __iomem *base; | 
					
						
							| 
									
										
										
										
											2012-08-08 20:40:32 +05:30
										 |  |  | 	struct device *dev; | 
					
						
							| 
									
										
										
										
											2009-06-05 06:28:40 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/* McASP specific data */ | 
					
						
							|  |  |  | 	int	tdm_slots; | 
					
						
							|  |  |  | 	u8	op_mode; | 
					
						
							|  |  |  | 	u8	num_serializer; | 
					
						
							|  |  |  | 	u8	*serial_dir; | 
					
						
							| 
									
										
										
										
											2009-08-11 16:58:52 -04:00
										 |  |  | 	u8	version; | 
					
						
							| 
									
										
										
										
											2013-04-19 15:28:44 +02:00
										 |  |  | 	u16	bclk_lrclk_ratio; | 
					
						
							| 
									
										
										
										
											2009-08-11 16:58:52 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/* McASP FIFO related */ | 
					
						
							|  |  |  | 	u8	txnumevt; | 
					
						
							|  |  |  | 	u8	rxnumevt; | 
					
						
							| 
									
										
										
										
											2013-10-01 14:50:02 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifdef CONFIG_PM_SLEEP
 | 
					
						
							|  |  |  | 	struct { | 
					
						
							|  |  |  | 		u32	txfmtctl; | 
					
						
							|  |  |  | 		u32	rxfmtctl; | 
					
						
							|  |  |  | 		u32	txfmt; | 
					
						
							|  |  |  | 		u32	rxfmt; | 
					
						
							|  |  |  | 		u32	aclkxctl; | 
					
						
							|  |  |  | 		u32	aclkrctl; | 
					
						
							|  |  |  | 		u32	pdir; | 
					
						
							|  |  |  | 	} context; | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2009-06-05 06:28:40 -04:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif	/* DAVINCI_MCASP_H */
 |