2009-05-14 20:01:59 +00:00
|
|
|
/*
|
|
|
|
* <mach/asp.h> - DaVinci Audio Serial Port support
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_DAVINCI_ASP_H
|
|
|
|
#define __ASM_ARCH_DAVINCI_ASP_H
|
|
|
|
|
|
|
|
#include <mach/irqs.h>
|
2009-06-05 10:28:08 +00:00
|
|
|
#include <mach/edma.h>
|
2009-05-14 20:01:59 +00:00
|
|
|
|
2009-06-05 10:28:08 +00:00
|
|
|
/* Bases of dm644x and dm355 register banks */
|
2009-05-14 20:01:59 +00:00
|
|
|
#define DAVINCI_ASP0_BASE 0x01E02000
|
|
|
|
#define DAVINCI_ASP1_BASE 0x01E04000
|
|
|
|
|
2009-06-05 10:28:08 +00:00
|
|
|
/* Bases of dm646x register banks */
|
|
|
|
#define DAVINCI_DM646X_MCASP0_REG_BASE 0x01D01000
|
|
|
|
#define DAVINCI_DM646X_MCASP1_REG_BASE 0x01D01800
|
|
|
|
|
|
|
|
/* EDMA channels of dm644x and dm355 */
|
2009-05-14 20:01:59 +00:00
|
|
|
#define DAVINCI_DMA_ASP0_TX 2
|
|
|
|
#define DAVINCI_DMA_ASP0_RX 3
|
|
|
|
#define DAVINCI_DMA_ASP1_TX 8
|
|
|
|
#define DAVINCI_DMA_ASP1_RX 9
|
|
|
|
|
2009-06-05 10:28:08 +00:00
|
|
|
/* EDMA channels of dm646x */
|
|
|
|
#define DAVINCI_DM646X_DMA_MCASP0_AXEVT0 6
|
|
|
|
#define DAVINCI_DM646X_DMA_MCASP0_AREVT0 9
|
|
|
|
#define DAVINCI_DM646X_DMA_MCASP1_AXEVT1 12
|
|
|
|
|
2009-05-14 20:01:59 +00:00
|
|
|
/* Interrupts */
|
|
|
|
#define DAVINCI_ASP0_RX_INT IRQ_MBRINT
|
|
|
|
#define DAVINCI_ASP0_TX_INT IRQ_MBXINT
|
|
|
|
#define DAVINCI_ASP1_RX_INT IRQ_MBRINT
|
|
|
|
#define DAVINCI_ASP1_TX_INT IRQ_MBXINT
|
|
|
|
|
2009-06-05 10:28:08 +00:00
|
|
|
struct snd_platform_data {
|
|
|
|
char *clk_name;
|
|
|
|
u32 tx_dma_offset;
|
|
|
|
u32 rx_dma_offset;
|
|
|
|
enum dma_event_q eventq_no; /* event queue number */
|
|
|
|
unsigned int codec_fmt;
|
|
|
|
|
|
|
|
/* McASP specific fields */
|
|
|
|
int tdm_slots;
|
|
|
|
u8 op_mode;
|
|
|
|
u8 num_serializer;
|
|
|
|
u8 *serial_dir;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define INACTIVE_MODE 0
|
|
|
|
#define TX_MODE 1
|
|
|
|
#define RX_MODE 2
|
|
|
|
|
|
|
|
#define DAVINCI_MCASP_IIS_MODE 0
|
|
|
|
#define DAVINCI_MCASP_DIT_MODE 1
|
|
|
|
|
2009-05-14 20:01:59 +00:00
|
|
|
#endif /* __ASM_ARCH_DAVINCI_ASP_H */
|