linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] ARM: mach-shmobile: add FLCTL DMA slave definitions for sh7372
Date: Mon, 24 Sep 2012 00:28:53 +0000	[thread overview]
Message-ID: <20120924002853.GC1141@verge.net.au> (raw)
In-Reply-To: <1348315598-3980-1-git-send-email-hechtb@gmail.com>

[ +CC linux-arm-kernel ]

On Sat, Sep 22, 2012 at 02:06:38PM +0200, Bastian Hecht wrote:
> SH7372 can use DMA with the FLCTL flash controller. Add required slave
> IDs and slave descriptors.
> 
> Signed-off-by: Bastian Hecht <hechtb@gmail.com>

Thanks, applied to the boards branch of my renesas tree.

Unfortunately its a bit late to get this into 3.7 so I am currently
targeting it for 3.8.

> 
>  arch/arm/mach-shmobile/include/mach/sh7372.h |    4 ++++
>  arch/arm/mach-shmobile/setup-sh7372.c        |   20 ++++++++++++++++++++
>  2 files changed, 24 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-shmobile/include/mach/sh7372.h b/arch/arm/mach-shmobile/include/mach/sh7372.h
> index b59048e..0ad4220 100644
> --- a/arch/arm/mach-shmobile/include/mach/sh7372.h
> +++ b/arch/arm/mach-shmobile/include/mach/sh7372.h
> @@ -452,6 +452,10 @@ enum {
>  	SHDMA_SLAVE_SCIF5_RX,
>  	SHDMA_SLAVE_SCIF6_TX,
>  	SHDMA_SLAVE_SCIF6_RX,
> +	SHDMA_SLAVE_FLCTL0_TX,
> +	SHDMA_SLAVE_FLCTL0_RX,
> +	SHDMA_SLAVE_FLCTL1_TX,
> +	SHDMA_SLAVE_FLCTL1_RX,
>  	SHDMA_SLAVE_SDHI0_RX,
>  	SHDMA_SLAVE_SDHI0_TX,
>  	SHDMA_SLAVE_SDHI1_RX,
> diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c
> index 838a87b..64af6ea 100644
> --- a/arch/arm/mach-shmobile/setup-sh7372.c
> +++ b/arch/arm/mach-shmobile/setup-sh7372.c
> @@ -408,6 +408,26 @@ static const struct sh_dmae_slave_config sh7372_dmae_slaves[] = {
>  		.chcr		= CHCR_RX(XMIT_SZ_8BIT),
>  		.mid_rid	= 0x3e,
>  	}, {
> +		.slave_id	= SHDMA_SLAVE_FLCTL0_TX,
> +		.addr		= 0xe6a30050,
> +		.chcr		= CHCR_TX(XMIT_SZ_32BIT),
> +		.mid_rid	= 0x83,
> +	}, {
> +		.slave_id	= SHDMA_SLAVE_FLCTL0_RX,
> +		.addr		= 0xe6a30050,
> +		.chcr		= CHCR_RX(XMIT_SZ_32BIT),
> +		.mid_rid	= 0x83,
> +	}, {
> +		.slave_id	= SHDMA_SLAVE_FLCTL1_TX,
> +		.addr		= 0xe6a30060,
> +		.chcr		= CHCR_TX(XMIT_SZ_32BIT),
> +		.mid_rid	= 0x87,
> +	}, {
> +		.slave_id	= SHDMA_SLAVE_FLCTL1_RX,
> +		.addr		= 0xe6a30060,
> +		.chcr		= CHCR_RX(XMIT_SZ_32BIT),
> +		.mid_rid	= 0x87,
> +	}, {
>  		.slave_id	= SHDMA_SLAVE_SDHI0_TX,
>  		.addr		= 0xe6850030,
>  		.chcr		= CHCR_TX(XMIT_SZ_16BIT),
> -- 
> 1.7.5.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

      reply	other threads:[~2012-09-24  0:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-22 12:06 [PATCH] ARM: mach-shmobile: add FLCTL DMA slave definitions for sh7372 Bastian Hecht
2012-09-24  0:28 ` Simon Horman [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=20120924002853.GC1141@verge.net.au \
    --to=horms@verge.net.au \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).