public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Gadiyar, Anand" <gadiyar@ti.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH 1/4] OMAP: DMA: Cleanup of DMA Request Lines
Date: Wed, 31 Oct 2007 06:11:01 -0700	[thread overview]
Message-ID: <20071031131059.GG32547@atomide.com> (raw)
In-Reply-To: <010C7BAE6783F34D9AC336EE5A01A08804AF985E@dbde01.ent.ti.com>

Hi,

* Gadiyar, Anand <gadiyar@ti.com> [071024 00:06]:
> From: Anand Gadiyar <gadiyar@ti.com>
> 
> Added support for TI OMAP3430 and cleanup of DMA request lines.
> 
> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
> ---
>  include/asm-arm/arch-omap/dma.h |  156 +++++++++++++++++++++++++++++++---------
>  1 files changed, 124 insertions(+), 32 deletions(-)
> 
> Index: omap-git/include/asm-arm/arch-omap/dma.h
> ===================================================================
> --- omap-git.orig/include/asm-arm/arch-omap/dma.h	2007-10-12 11:33:00.000000000 -0400
> +++ omap-git/include/asm-arm/arch-omap/dma.h	2007-10-12 11:53:31.082086120 -0400
> @@ -62,6 +62,7 @@
>  #define OMAP_DMA4_IRQENABLE_L2		(OMAP_DMA4_BASE + 0x20)
>  #define OMAP_DMA4_IRQENABLE_L3		(OMAP_DMA4_BASE + 0x24)
>  #define OMAP_DMA4_SYSSTATUS		(OMAP_DMA4_BASE + 0x28)
> +#define OMAP_DMA4_OCP_SYSCONFIG		(OMAP_DMA4_BASE + 0x2c)
>  #define OMAP_DMA4_CAPS_0		(OMAP_DMA4_BASE + 0x64)
>  #define OMAP_DMA4_CAPS_2		(OMAP_DMA4_BASE + 0x6c)
>  #define OMAP_DMA4_CAPS_3		(OMAP_DMA4_BASE + 0x70)
> @@ -189,19 +190,43 @@
>  
>  /* DMA channels for 24xx */
>  #define OMAP24XX_DMA_NO_DEVICE		0
> +
> +#ifndef CONFIG_ARCH_OMAP3
>  #define OMAP24XX_DMA_XTI_DMA		1	/* S_DMA_0 */
> +#endif
> +
>  #define OMAP24XX_DMA_EXT_DMAREQ0	2	/* S_DMA_1 */
>  #define OMAP24XX_DMA_EXT_DMAREQ1	3	/* S_DMA_2 */
>  #define OMAP24XX_DMA_GPMC		4	/* S_DMA_3 */
> +
> +#ifndef CONFIG_ARCH_OMAP3
>  #define OMAP24XX_DMA_GFX		5	/* S_DMA_4 */
> +#endif
> +
>  #define OMAP24XX_DMA_DSS		6	/* S_DMA_5 */
> +
> +#ifdef CONFIG_ARCH_OMAP2420
>  #define OMAP24XX_DMA_VLYNQ_TX		7	/* S_DMA_6 */
> +#else
> +#define OMAP24XX_DMA_EXT_DMAREQ2	7	/* S_DMA_6 */
> +#endif
> +
> +#ifndef CONFIG_ARCH_OMAP3
>  #define OMAP24XX_DMA_CWT		8	/* S_DMA_7 */
> +#endif
> +
>  #define OMAP24XX_DMA_AES_TX		9	/* S_DMA_8 */
>  #define OMAP24XX_DMA_AES_RX		10	/* S_DMA_9 */
>  #define OMAP24XX_DMA_DES_TX		11	/* S_DMA_10 */
>  #define OMAP24XX_DMA_DES_RX		12	/* S_DMA_11 */
> +
> +#ifdef CONFIG_ARCH_OMAP3
> +#define OMAP34XX_DMA_SHA2MD5_RX		13	/* S_DMA_12 */
> +#else
>  #define OMAP24XX_DMA_SHA1MD5_RX		13	/* S_DMA_12 */
> +#endif
> +
> +#ifdef CONFIG_ARCH_OMAP2420
>  #define OMAP24XX_DMA_EXT_DMAREQ2	14	/* S_DMA_13 */
>  #define OMAP24XX_DMA_EXT_DMAREQ3	15	/* S_DMA_14 */
>  #define OMAP24XX_DMA_EXT_DMAREQ4	16	/* S_DMA_15 */

Let's remove the #ifdefs here, we want to be able to compile support for
24xx and 34xx into the same kernel eventually. It's OK to have the same
DMA request channel defined in different way for 24xx and 34xx.

Regards,

Tony

  reply	other threads:[~2007-10-31 13:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24  7:04 [PATCH 1/4] OMAP: DMA: Cleanup of DMA Request Lines Gadiyar, Anand
2007-10-31 13:11 ` Tony Lindgren [this message]
2007-10-31 13:18   ` Woodruff, Richard
2007-10-31 13:26     ` Tony Lindgren
2007-11-21  5:12   ` Gadiyar, Anand
2007-11-21 17:06     ` Tony Lindgren
2007-11-15  1:55 ` Tony Lindgren
2007-11-15  1:57   ` Tony Lindgren
2007-11-15  4:04     ` Gadiyar, Anand

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=20071031131059.GG32547@atomide.com \
    --to=tony@atomide.com \
    --cc=gadiyar@ti.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