From: Tony Lindgren <tony@atomide.com>
To: Komal Shah <komal_shah802003@yahoo.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] omap24xx mcbsp support
Date: Mon, 21 Nov 2005 10:33:02 -0800 [thread overview]
Message-ID: <20051121183302.GE7680@atomide.com> (raw)
In-Reply-To: <20051121051735.80492.qmail@web32904.mail.mud.yahoo.com>
* Komal Shah <komal_shah802003@yahoo.com> [051120 21:20]:
> Tony,
>
> I have added the omap24xx mcbsp support to existing mcbsp framework.
> Only tested with dumping the registers.
OK
> Have you tested the dma chaining on 24xx? Next plan is to add audio and
> touchscreen support taking spi code from 2.6.9 for time being. Once
> audio + ts is tested then we can move to better spi framework from
> spi-devel guys.
No, I've only tested dma with memory-to-memory transfers and MMC on
24xx. So audio would be a good test :)
One comment on the patch below:
> @@ -228,8 +231,10 @@ int omap_mcbsp_request(unsigned int id)
> * On 1510, 1610 and 1710, McBSP1 and McBSP3
> * are DSP public peripherals.
> */
> - if (id == OMAP_MCBSP1 || id == OMAP_MCBSP3)
> - omap_mcbsp_dsp_request();
> + if (cpu_is_omap1510() || cpu_is_omap16xx()) {
> + if (id == OMAP_MCBSP1 || id == OMAP_MCBSP3)
> + omap_mcbsp_dsp_request();
> + }
>
> spin_lock(&mcbsp[id].lock);
> if (!mcbsp[id].free) {
> @@ -274,8 +279,10 @@ void omap_mcbsp_free(unsigned int id)
> if (omap_mcbsp_check(id) < 0)
> return;
>
> - if (id == OMAP_MCBSP1 || id == OMAP_MCBSP3)
> - omap_mcbsp_dsp_free();
> + if (cpu_is_omap1510() || cpu_is_omap24xx()) {
> + if (id == OMAP_MCBSP1 || id == OMAP_MCBSP3)
> + omap_mcbsp_dsp_free();
> + }
>
> spin_lock(&mcbsp[id].lock);
> if (mcbsp[id].free) {
AFAIK 730 and 24xx do not have mcbsp wired to DSP, and only 15xx
and 16xx have it wired to DSP. Then the second chunk above should
probably be also if (cpu_is_omap1510() || cpu_is_omap16xx()) ?
Regards,
Tony
next prev parent reply other threads:[~2005-11-21 18:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 5:17 [PATCH] omap24xx mcbsp support Komal Shah
2005-11-21 18:33 ` Tony Lindgren [this message]
2005-11-22 4:56 ` Komal Shah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051121183302.GE7680@atomide.com \
--to=tony@atomide.com \
--cc=komal_shah802003@yahoo.com \
--cc=linux-omap-open-source@linux.omap.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox