From: Tony Lindgren <tony@atomide.com>
To: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
Cc: "Högander Jouni" <jouni.hogander@nokia.com>,
linux-omap@vger.kernel.org, khilman@deeprootsystems.com
Subject: Re: [PATCH 1/1] OMAP3: DMA: Enable idlemodes for DMA OCP
Date: Mon, 15 Dec 2008 16:07:42 -0800 [thread overview]
Message-ID: <20081216000741.GD19551@atomide.com> (raw)
In-Reply-To: <1228151015.9951.624.camel@kj-ubuntu>
* Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com> [081201 09:00]:
> On ma, 2008-12-01 at 12:50 +0200, Kalle Jokiniemi wrote:
> > On ma, 2008-12-01 at 11:06 +0200, Högander Jouni wrote:
> > > "ext Kalle Jokiniemi" <ext-kalle.jokiniemi@nokia.com> writes:
> > >
> > > > This patch enables MStandby smart-idle mode, autoidle smartidle mode,
> > > > and the autoidle bit for DMA4_OCP_SYSCONFIG.
> > > >
> > > > Signed-off-by: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
> > > > ---
> > > > arch/arm/plat-omap/dma.c | 13 +++++++++++++
> > > > arch/arm/plat-omap/include/mach/dma.h | 15 +++++++++++++++
> > > > 2 files changed, 28 insertions(+), 0 deletions(-)
> > > >
> > > > diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
> > > > index c4e5ba3..9d8d28c 100644
> > > > --- a/arch/arm/plat-omap/dma.c
> > > > +++ b/arch/arm/plat-omap/dma.c
> > > > @@ -2420,6 +2420,19 @@ static int __init omap_init_dma(void)
> > > > if (cpu_class_is_omap2())
> > > > setup_irq(INT_24XX_SDMA_IRQ0, &omap24xx_dma_irq);
> > > >
> > > > + /* Enable smartidle idlemodes and autoidle */
> > > > + if (cpu_is_omap34xx()) {
> > >
> > > I think this can be done for omap2 also.
> >
> > Probably true. If no other comments come today, I'll post a new patch
> > with this change.
>
> Now that I re-checked, there is no SIDLEMODE for omap2. Also in omap2,
> setting MIDLEMODE to smartidle cannot be done if cam DMA is used.
>
> So, I think the patch should be as it is, omap3 only.
OK. Pushing to l-o tree and queuing for upstream.
Regards,
Tony
>
> - Kalle
>
> >
> > - Kalle
> >
> > >
> > > > + u32 v = dma_read(OCP_SYSCONFIG);
> > > > + v &= ~(DMA_SYSCONFIG_MIDLEMODE_MASK |
> > > > + DMA_SYSCONFIG_SIDLEMODE_MASK |
> > > > + DMA_SYSCONFIG_AUTOIDLE);
> > > > + v |= (DMA_SYSCONFIG_MIDLEMODE(DMA_IDLEMODE_SMARTIDLE) |
> > > > + DMA_SYSCONFIG_SIDLEMODE(DMA_IDLEMODE_SMARTIDLE) |
> > > > + DMA_SYSCONFIG_AUTOIDLE);
> > > > + dma_write(v , OCP_SYSCONFIG);
> > > > + }
> > > > +
> > > > +
> > > > /* FIXME: Update LCD DMA to work on 24xx */
> > > > if (cpu_class_is_omap1()) {
> > > > r = request_irq(INT_DMA_LCD, lcd_dma_irq_handler, 0,
> > > > diff --git a/arch/arm/plat-omap/include/mach/dma.h
> > > > b/arch/arm/plat-omap/include/mach/dma.h
> > >
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2008-12-16 0:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 8:55 [PATCH 0/1] OMAP3: DMA: Enable idlemodes for DMA OCP Kalle Jokiniemi
2008-12-01 8:55 ` [PATCH 1/1] " Kalle Jokiniemi
2008-12-01 9:06 ` Högander Jouni
2008-12-01 10:50 ` Kalle Jokiniemi
2008-12-01 17:03 ` Kalle Jokiniemi
2008-12-16 0:07 ` Tony Lindgren [this message]
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=20081216000741.GD19551@atomide.com \
--to=tony@atomide.com \
--cc=ext-kalle.jokiniemi@nokia.com \
--cc=jouni.hogander@nokia.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
/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