Re: OMAP5912 and McBSP2 with DMA

andrzej zaborowski
2007-07-23T21:19:01Z

On 22/07/07, Oleg Kechin <okechin@gmail.com> wrote:
> On 7/20/07, andrzej zaborowski <balrogg@gmail.com> wrote:
> >
> > Hi,
> >
> > On 17/07/07, Steve Poulsen <spoulsen@css-design.us> wrote:
> > > Could someone tell me what the port should be for DMA with McBSP2?
> > > Since it is an ARM peripheral (as opposed to McBSP1 and McBSP3), then I
> > > expect it to be as follows. However, I get a timeout error.
> > >
> > > omap_set_dma_dest_params(cs4384_data.dma_tx_ch,
> > > OMAP_DMA_PORT_TIPB,
> > > OMAP_DMA_AMODE_CONSTANT,
> > > OMAP1610_MCBSP2_BASE + OMAP_MCBSP_REG_DXR2,
> > > 0, 0);
> >
> > I believe McBSP2 is on the TIPB-MPUI port, which has the value of 5
> > (as opposed to 3 for TIPB) but I don't remember the macro name.
> >
> > Cheers
> > _______________________________________________
> > Linux-omap-open-source mailing list
> > Linux-omap-open-source@linux.omap.com
> > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> >
>
> I disagree.
> ===
> " but the MPUI port is a dedicated port used for MPU or system DMA initiated
> transfers
> to DSP subsystem resources."
> ===
> sprs231b.pdf page 165. So for MCBSP2 port type is TIPB bus I think. (I use
> it by myself in OMAP5910 and it is work fine).

Sorry, I confused the ports. It's McBSP1 and McBSP3 that use the other
bus (just checked in sound/arm/omap/omap-alsa-dma.c now):

omap_set_dma_dest_params(channel, 0x05, 0x00,
(OMAP1510_MCBSP1_BASE + 0x06),
0, 0);

whie for McBSP2 the value is indeed 0x3.

Regards