#define OMAP24XX_MCBSP1_BASE 0x48074000
#define OMAP24XX_MCBSP2_BASE 0x48076000
-#ifdef CONFIG_ARCH_OMAP16XX
+#if defined(CONFIG_ARCH_OMAP15XX) || defined(CONFIG_ARCH_OMAP16XX)
#define OMAP_MCBSP_REG_DRR2 0x00
#define OMAP_MCBSP_REG_DRR1 0x02
#define OMAP_MAX_MCBSP_COUNT 3
+#define AUDIO_MCBSP_DATAWRITE (OMAP1510_MCBSP1_BASE + OMAP_MCBSP_REG_DXR1)
+#define AUDIO_MCBSP_DATAREAD (OMAP1510_MCBSP1_BASE + OMAP_MCBSP_REG_DRR1)
+
#define AUDIO_MCBSP OMAP_MCBSP1
#define AUDIO_DMA_TX OMAP_DMA_MCBSP1_TX
#define AUDIO_DMA_RX OMAP_DMA_MCBSP1_RX
return;
}
-/*********************************** MODULE FUNCTIONS DEFINTIONS ***********************/
-
-#ifdef OMAP1610_MCBSP1_BASE
-#undef OMAP1610_MCBSP1_BASE
-#endif
-#define OMAP1610_MCBSP1_BASE 0xE1011000
-
/***************************************************************************************
*
* DMA related functions
FN_IN;
- if (cpu_is_omap16xx()) {
- dest_start = (OMAP1610_MCBSP1_BASE + 0x806);
+ if (cpu_is_omap1510() || cpu_is_omap16xx()) {
+ dest_start = AUDIO_MCBSP_DATAWRITE;
dest_port = OMAP_DMA_PORT_MPUI;
}
if (cpu_is_omap24xx()) {
FN_IN;
- if (cpu_is_omap16xx()) {
- src_start = (OMAP1610_MCBSP1_BASE + 0x802);
+ if (cpu_is_omap1510() || cpu_is_omap16xx()) {
+ src_start = AUDIO_MCBSP_DATAREAD;
src_port = OMAP_DMA_PORT_MPUI;
}
if (cpu_is_omap24xx()) {
DPRINTK("lch=%d,status=0x%x, dma_status=%d, data=%p\n", sound_curr_lch,
ch_status, dma_status, data);
- if (dma_status) {
- if (cpu_is_omap16xx() && (dma_status & (DCSR_ERROR)))
+ if (dma_status & (DCSR_ERROR)) {
+ if (cpu_is_omap1510() || cpu_is_omap16xx())
OMAP_DMA_CCR_REG(sound_curr_lch) &= ~DCCR_EN;
ERR("DCSR_ERROR!\n");
FN_OUT(-1);