From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.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:06:39 +0000 [thread overview]
Message-ID: <513CE7CF.7030802@cogentembedded.com> (raw)
In-Reply-To: <1362941928-18115-12-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
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
[...]
> static struct platform_device r8a7779_pfc_device = {
> @@ -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.
WBR, Sergei \
next prev parent reply other threads:[~2013-03-10 20:06 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 [this message]
2013-03-10 20:21 ` Laurent Pinchart
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=513CE7CF.7030802@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.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