All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Gadiyar, Anand" <gadiyar@ti.com>
Cc: Eduardo Valentin <edubezval@gmail.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	Eduardo Valentin <eduardo.valentin@indt.org.br>
Subject: Re: [PATCH 5/5] MACH-OMAP2: MCBSP: Add support for mcbsp on mach-omap2
Date: Thu, 29 May 2008 11:01:20 -0700	[thread overview]
Message-ID: <20080529180120.GC8013@atomide.com> (raw)
In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB0228BF15B5@dbde02.ent.ti.com>

* Gadiyar, Anand <gadiyar@ti.com> [080529 09:18]:
> > +
> > +static struct omap_mcbsp_platform_data omap2_mcbsp_pdata[] = {
> > +#ifdef CONFIG_ARCH_OMAP24XX
> > +       {
> > +               .virt_base      = IO_ADDRESS(OMAP24XX_MCBSP1_BASE),
> > +               .dma_rx_sync    = OMAP24XX_DMA_MCBSP1_RX,
> > +               .dma_tx_sync    = OMAP24XX_DMA_MCBSP1_TX,
> > +               .rx_irq         = INT_24XX_MCBSP1_IRQ_RX,
> > +               .tx_irq         = INT_24XX_MCBSP1_IRQ_TX,
> > +               .ops            = &omap2_mcbsp_ops,
> > +               .clk_name       = "mcbsp_clk",
> > +       },
> > +       {
> > +               .virt_base      = IO_ADDRESS(OMAP24XX_MCBSP2_BASE),
> > +               .dma_rx_sync    = OMAP24XX_DMA_MCBSP2_RX,
> > +               .dma_tx_sync    = OMAP24XX_DMA_MCBSP2_TX,
> > +               .rx_irq         = INT_24XX_MCBSP2_IRQ_RX,
> > +               .tx_irq         = INT_24XX_MCBSP2_IRQ_TX,
> > +               .ops            = &omap2_mcbsp_ops,
> > +               .clk_name       = "mcbsp_clk",
> > +       },
> > +#endif
> > +#ifdef CONFIG_ARCH_OMAP34XX
> > +       {
> > +               .virt_base      = IO_ADDRESS(OMAP34XX_MCBSP1_BASE),
> > +               .dma_rx_sync    = OMAP24XX_DMA_MCBSP1_RX,
> > +               .dma_tx_sync    = OMAP24XX_DMA_MCBSP1_TX,
> > +               .rx_irq         = INT_24XX_MCBSP1_IRQ_RX,
> > +               .tx_irq         = INT_24XX_MCBSP1_IRQ_TX,
> > +               .ops            = &omap2_mcbsp_ops,
> > +               .clk_name       = "mcbsp_clk",
> > +       },
> > +       {
> > +               .virt_base      = IO_ADDRESS(OMAP34XX_MCBSP2_BASE),
> > +               .dma_rx_sync    = OMAP24XX_DMA_MCBSP2_RX,
> > +               .dma_tx_sync    = OMAP24XX_DMA_MCBSP2_TX,
> > +               .rx_irq         = INT_24XX_MCBSP2_IRQ_RX,
> > +               .tx_irq         = INT_24XX_MCBSP2_IRQ_TX,
> > +               .ops            = &omap2_mcbsp_ops,
> > +               .clk_name       = "mcbsp_clk",
> > +       },
> > +#endif
> > +};
> 
> I guess Tony won't like this as it will break support for multi-omap.

Well looks like they both can be compiled in, so it should be fine :)
That is assuming 242x and 243x have same OMAP2XX_MCBSP[12]_BASE.

And IO_ADDRESS will eventually be OMAP2_IO_ADDRESS, which is same
for 24xx and 34xx.

Regards,

Tony

  reply	other threads:[~2008-05-29 18:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-29 15:31 [PATCH 0/5] Updates on mcbsp driver (take #3) Eduardo Valentin
2008-05-29 15:31 ` [PATCH 2/5] MACH-OMAP1: MCBSP: Add support for mcbsp on mach-omap1 Eduardo Valentin
2008-05-29 15:31   ` [PATCH 4/5] Fix mcbsp clock definition on clock34xx.h Eduardo Valentin
2008-05-29 15:31     ` [PATCH 5/5] MACH-OMAP2: MCBSP: Add support for mcbsp on mach-omap2 Eduardo Valentin
2008-05-29 16:08       ` Gadiyar, Anand
2008-05-29 18:01         ` Tony Lindgren [this message]
2008-05-29 15:55   ` [PATCH 2/5] MACH-OMAP1: MCBSP: Add support for mcbsp on mach-omap1 andrzej zaborowski
2008-05-29 15:36 ` [PATCH 1/5] PLAT-OMAP: MCBSP: Transform into platform driver Eduardo Valentin
  -- strict thread matches above, loose matches on Subject: below --
2008-05-29 16:50 [PATCH 0/5] Updates on mcbsp driver (take #4) Eduardo Valentin
2008-05-29 16:50 ` [PATCH 1/5] PLAT-OMAP: MCBSP: Transform into platform driver Eduardo Valentin
2008-05-29 16:50   ` [PATCH 2/5] MACH-OMAP1: MCBSP: Add support for mcbsp on mach-omap1 Eduardo Valentin
2008-05-29 16:50     ` [PATCH 3/5] ARM: OMAP: Fix 24xx mcbsp clocks Eduardo Valentin
2008-05-29 16:50       ` [PATCH 4/5] Fix mcbsp clock definition on clock34xx.h Eduardo Valentin
2008-05-29 16:50         ` [PATCH 5/5] MACH-OMAP2: MCBSP: Add support for mcbsp on mach-omap2 Eduardo Valentin
2008-04-24 15:54 [PATCH 0/5] Updates on mcbsp driver Eduardo Valentin
2008-04-24 15:54 ` [PATCH 1/5] PLAT-OMAP: MCBSP: Tranform into platform driver Eduardo Valentin
2008-04-24 15:54   ` [PATCH 2/5] MACH-OMAP1: MCBSP: Add support for mcbsp on mach-omap1 Eduardo Valentin
2008-04-24 15:54     ` [PATCH 3/5] Fix mcbsp clock definition on clock34xx.h Eduardo Valentin
2008-04-24 15:54       ` [PATCH 4/5] OMAP3xx: Add DMA and IRQ definition for McBSP 1 and 2 Eduardo Valentin
2008-04-24 15:54         ` [PATCH 5/5] MACH-OMAP2: MCBSP: Add support for mcbsp on mach-omap2 Eduardo Valentin

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=20080529180120.GC8013@atomide.com \
    --to=tony@atomide.com \
    --cc=eduardo.valentin@indt.org.br \
    --cc=edubezval@gmail.com \
    --cc=gadiyar@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.