SUPERH platform development
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH/RFC 11/12] ARM: shmobile: r8a7779: Register GPIO devices
Date: Sun, 10 Mar 2013 20:21:53 +0000	[thread overview]
Message-ID: <8467975.JttTFoc9XY@avalon> (raw)
In-Reply-To: <1362941928-18115-12-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

Hi Sergei,

On Monday 11 March 2013 00:06:39 Sergei Shtylyov wrote:
> Hello.
> 
> On 10-03-2013 22:58, Laurent Pinchart wrote:
> > Move GPIOs handling from the PFC device to separate GPIO devices.
> > 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> > 
> >   arch/arm/mach-shmobile/setup-r8a7779.c | 58
> >   ++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 6
> >   deletions(-)
> > 
> > diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c
> > b/arch/arm/mach-shmobile/setup-r8a7779.c index c54ff9b..1580605 100644
> > --- a/arch/arm/mach-shmobile/setup-r8a7779.c
> > +++ b/arch/arm/mach-shmobile/setup-r8a7779.c
> 
> [...]
> 
> > @@ -80,9 +76,59 @@ static struct platform_device r8a7779_pfc_device = {
> >   	.num_resources	= ARRAY_SIZE(r8a7779_pfc_resources),
> >   };
> > 
> > +#define R8A7779_GPIO(idx, npins) \
> > +static struct resource r8a7779_gpio##idx##_resources[] = {		\
> > +	[0] = {								\
> > +		.start	= 0xffc40000 + 0x1000 * (idx),			\
> > +		.end	= 0xffc4002b + 0x1000 * (idx),			\
> > +		.flags	= IORESOURCE_MEM,				\
> > +	},								\
> > +	[1] = {								\
> > +		.start	= gic_spi(141 + (idx)),				\
> 
> This file uses gic_iid() now instead.

Thanks. I found the gic_spi() macro pretty weird, I'm glad to know it wasn't 
just me :-)

-- 
Regards,

Laurent Pinchart


      parent reply	other threads:[~2013-03-10 20:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-10 18:58 [PATCH/RFC 11/12] ARM: shmobile: r8a7779: Register GPIO devices Laurent Pinchart
2013-03-10 20:06 ` Sergei Shtylyov
2013-03-10 20:21 ` Laurent Pinchart [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=8467975.JttTFoc9XY@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=linux-sh@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