public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* OMAP5912 and McBSP2 with DMA
@ 2007-07-17 10:55 Steve Poulsen
  2007-07-20  0:18 ` andrzej zaborowski
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Poulsen @ 2007-07-17 10:55 UTC (permalink / raw)
  To: linux-omap-open-source

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);

If I change the code to use MCBSP1 (and MPUI as the port), all is well.

Thanks,

Steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OMAP5912 and McBSP2 with DMA
  2007-07-17 10:55 OMAP5912 and McBSP2 with DMA Steve Poulsen
@ 2007-07-20  0:18 ` andrzej zaborowski
  2007-07-21 15:14   ` Steve Poulsen
  2007-07-22  9:29   ` Oleg Kechin
  0 siblings, 2 replies; 5+ messages in thread
From: andrzej zaborowski @ 2007-07-20  0:18 UTC (permalink / raw)
  To: Steve Poulsen; +Cc: linux-omap-open-source

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OMAP5912 and McBSP2 with DMA
  2007-07-20  0:18 ` andrzej zaborowski
@ 2007-07-21 15:14   ` Steve Poulsen
  2007-07-22  9:29   ` Oleg Kechin
  1 sibling, 0 replies; 5+ messages in thread
From: Steve Poulsen @ 2007-07-21 15:14 UTC (permalink / raw)
  To: andrzej zaborowski; +Cc: linux-omap-open-source

Many thanks.  The TIPB seemed to work fine, but only after I changed the 
DMA element size to 16-bit and wrote to DXR1.  I could not get 32-bit 
transfers to work at all.

I may double check your recommendation to see if I can get 32-bit 
working that way.

Steve

andrzej zaborowski 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
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OMAP5912 and McBSP2 with DMA
  2007-07-20  0:18 ` andrzej zaborowski
  2007-07-21 15:14   ` Steve Poulsen
@ 2007-07-22  9:29   ` Oleg Kechin
  2007-07-23 21:19     ` andrzej zaborowski
  1 sibling, 1 reply; 5+ messages in thread
From: Oleg Kechin @ 2007-07-22  9:29 UTC (permalink / raw)
  To: Steve Poulsen; +Cc: linux-omap-open-source

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).

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OMAP5912 and McBSP2 with DMA
  2007-07-22  9:29   ` Oleg Kechin
@ 2007-07-23 21:19     ` andrzej zaborowski
  0 siblings, 0 replies; 5+ messages in thread
From: andrzej zaborowski @ 2007-07-23 21:19 UTC (permalink / raw)
  To: Oleg Kechin; +Cc: linux-omap-open-source

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-23 21:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 10:55 OMAP5912 and McBSP2 with DMA Steve Poulsen
2007-07-20  0:18 ` andrzej zaborowski
2007-07-21 15:14   ` Steve Poulsen
2007-07-22  9:29   ` Oleg Kechin
2007-07-23 21:19     ` andrzej zaborowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox