From: Vasily Khoruzhick <anarsoul@gmail.com> To: linux-arm-kernel@lists.infradead.org Cc: Christian Pellegrin <chripell@fsfe.org>, ben-linux@fluff.org, linux-samsung-soc@vger.kernel.org Subject: Re: [PATCH v2.6.34-rc2] s3c: Adds support for banks H and J on S3C244X CPUs Date: Fri, 23 Apr 2010 09:34:08 +0300 [thread overview] Message-ID: <201004230934.14960.anarsoul@gmail.com> (raw) In-Reply-To: <1269937367-7571-1-git-send-email-chripell@fsfe.org> [-- Attachment #1: Type: Text/Plain, Size: 3851 bytes --] В сообщении от 30 марта 2010 11:22:47 автор Christian Pellegrin написал: > This patch adds support to gpiolib for GPIO bank J present on S3C244X > CPUs. > > Signed-off-by: Christian Pellegrin <chripell@fsfe.org> Tested-by: Vasily Khoruzhick <anarsoul@gmail.com> > --- > arch/arm/mach-s3c2410/include/mach/gpio-nrs.h | 4 ++++ > arch/arm/mach-s3c2410/include/mach/gpio.h | 8 ++++++++ > arch/arm/plat-s3c24xx/gpiolib.c | 16 +++++++++++++++- > 3 files changed, 27 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h > b/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h index 2edbb9c..f1f32e2 > 100644 > --- a/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h > +++ b/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h > @@ -24,6 +24,7 @@ > #define S3C2410_GPIO_BANKF (32*5) > #define S3C2410_GPIO_BANKG (32*6) > #define S3C2410_GPIO_BANKH (32*7) > +#define S3C2410_GPIO_BANKJ (32*8) > > /* GPIO bank sizes */ > #define S3C2410_GPIO_A_NR (32) > @@ -34,6 +35,7 @@ > #define S3C2410_GPIO_F_NR (32) > #define S3C2410_GPIO_G_NR (32) > #define S3C2410_GPIO_H_NR (32) > +#define S3C2410_GPIO_J_NR (32) > > #if CONFIG_S3C_GPIO_SPACE != 0 > #error CONFIG_S3C_GPIO_SPACE cannot be zero at the moment > @@ -53,6 +55,7 @@ enum s3c_gpio_number { > S3C2410_GPIO_F_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_E), > S3C2410_GPIO_G_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_F), > S3C2410_GPIO_H_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_G), > + S3C2410_GPIO_J_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_H), > }; > > #endif /* __ASSEMBLY__ */ > @@ -67,6 +70,7 @@ enum s3c_gpio_number { > #define S3C2410_GPF(_nr) (S3C2410_GPIO_F_START + (_nr)) > #define S3C2410_GPG(_nr) (S3C2410_GPIO_G_START + (_nr)) > #define S3C2410_GPH(_nr) (S3C2410_GPIO_H_START + (_nr)) > +#define S3C2410_GPJ(_nr) (S3C2410_GPIO_J_START + (_nr)) > > /* compatibility until drivers can be modified */ > > diff --git a/arch/arm/mach-s3c2410/include/mach/gpio.h > b/arch/arm/mach-s3c2410/include/mach/gpio.h index 15f0b3e..1528fc7 100644 > --- a/arch/arm/mach-s3c2410/include/mach/gpio.h > +++ b/arch/arm/mach-s3c2410/include/mach/gpio.h > @@ -20,10 +20,18 @@ > * devices that need GPIO. > */ > > +#ifdef CONFIG_CPU_S3C244X > +#define ARCH_NR_GPIOS (32 * 9 + CONFIG_S3C24XX_GPIO_EXTRA) > +#else > #define ARCH_NR_GPIOS (256 + CONFIG_S3C24XX_GPIO_EXTRA) > +#endif > > #include <asm-generic/gpio.h> > #include <mach/gpio-nrs.h> > #include <mach/gpio-fns.h> > > +#ifdef CONFIG_CPU_S3C244X > +#define S3C_GPIO_END (S3C2410_GPIO_BANKJ + 32) > +#else > #define S3C_GPIO_END (S3C2410_GPIO_BANKH + 32) > +#endif > diff --git a/arch/arm/plat-s3c24xx/gpiolib.c > b/arch/arm/plat-s3c24xx/gpiolib.c index 4f0f11a..0818a6e 100644 > --- a/arch/arm/plat-s3c24xx/gpiolib.c > +++ b/arch/arm/plat-s3c24xx/gpiolib.c > @@ -26,6 +26,7 @@ > #include <plat/pm.h> > > #include <mach/regs-gpio.h> > +#include <mach/regs-gpioj.h> > > static int s3c24xx_gpiolib_banka_input(struct gpio_chip *chip, unsigned > offset) { > @@ -151,7 +152,8 @@ struct s3c_gpio_chip s3c24xx_gpios[] = { > .ngpio = 16, > .to_irq = s3c24xx_gpiolib_bankg_toirq, > }, > - }, { > + }, > + [7] = { > .base = S3C2410_GPHCON, > .pm = __gpio_pm(&s3c_gpio_pm_2bit), > .chip = { > @@ -161,6 +163,18 @@ struct s3c_gpio_chip s3c24xx_gpios[] = { > .ngpio = 11, > }, > }, > +#ifdef CONFIG_CPU_S3C244X > + [8] = { > + .base = S3C2440_GPJCON, > + .pm = __gpio_pm(&s3c_gpio_pm_2bit), > + .chip = { > + .base = S3C2410_GPJ(0), > + .owner = THIS_MODULE, > + .label = "GPIOJ", > + .ngpio = 13, > + }, > + }, > +#endif > }; > > static __init int s3c24xx_gpiolib_init(void) [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 198 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: anarsoul@gmail.com (Vasily Khoruzhick) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2.6.34-rc2] s3c: Adds support for banks H and J on S3C244X CPUs Date: Fri, 23 Apr 2010 09:34:08 +0300 [thread overview] Message-ID: <201004230934.14960.anarsoul@gmail.com> (raw) In-Reply-To: <1269937367-7571-1-git-send-email-chripell@fsfe.org> ? ????????? ?? 30 ????? 2010 11:22:47 ????? Christian Pellegrin ???????: > This patch adds support to gpiolib for GPIO bank J present on S3C244X > CPUs. > > Signed-off-by: Christian Pellegrin <chripell@fsfe.org> Tested-by: Vasily Khoruzhick <anarsoul@gmail.com> > --- > arch/arm/mach-s3c2410/include/mach/gpio-nrs.h | 4 ++++ > arch/arm/mach-s3c2410/include/mach/gpio.h | 8 ++++++++ > arch/arm/plat-s3c24xx/gpiolib.c | 16 +++++++++++++++- > 3 files changed, 27 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h > b/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h index 2edbb9c..f1f32e2 > 100644 > --- a/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h > +++ b/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h > @@ -24,6 +24,7 @@ > #define S3C2410_GPIO_BANKF (32*5) > #define S3C2410_GPIO_BANKG (32*6) > #define S3C2410_GPIO_BANKH (32*7) > +#define S3C2410_GPIO_BANKJ (32*8) > > /* GPIO bank sizes */ > #define S3C2410_GPIO_A_NR (32) > @@ -34,6 +35,7 @@ > #define S3C2410_GPIO_F_NR (32) > #define S3C2410_GPIO_G_NR (32) > #define S3C2410_GPIO_H_NR (32) > +#define S3C2410_GPIO_J_NR (32) > > #if CONFIG_S3C_GPIO_SPACE != 0 > #error CONFIG_S3C_GPIO_SPACE cannot be zero at the moment > @@ -53,6 +55,7 @@ enum s3c_gpio_number { > S3C2410_GPIO_F_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_E), > S3C2410_GPIO_G_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_F), > S3C2410_GPIO_H_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_G), > + S3C2410_GPIO_J_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_H), > }; > > #endif /* __ASSEMBLY__ */ > @@ -67,6 +70,7 @@ enum s3c_gpio_number { > #define S3C2410_GPF(_nr) (S3C2410_GPIO_F_START + (_nr)) > #define S3C2410_GPG(_nr) (S3C2410_GPIO_G_START + (_nr)) > #define S3C2410_GPH(_nr) (S3C2410_GPIO_H_START + (_nr)) > +#define S3C2410_GPJ(_nr) (S3C2410_GPIO_J_START + (_nr)) > > /* compatibility until drivers can be modified */ > > diff --git a/arch/arm/mach-s3c2410/include/mach/gpio.h > b/arch/arm/mach-s3c2410/include/mach/gpio.h index 15f0b3e..1528fc7 100644 > --- a/arch/arm/mach-s3c2410/include/mach/gpio.h > +++ b/arch/arm/mach-s3c2410/include/mach/gpio.h > @@ -20,10 +20,18 @@ > * devices that need GPIO. > */ > > +#ifdef CONFIG_CPU_S3C244X > +#define ARCH_NR_GPIOS (32 * 9 + CONFIG_S3C24XX_GPIO_EXTRA) > +#else > #define ARCH_NR_GPIOS (256 + CONFIG_S3C24XX_GPIO_EXTRA) > +#endif > > #include <asm-generic/gpio.h> > #include <mach/gpio-nrs.h> > #include <mach/gpio-fns.h> > > +#ifdef CONFIG_CPU_S3C244X > +#define S3C_GPIO_END (S3C2410_GPIO_BANKJ + 32) > +#else > #define S3C_GPIO_END (S3C2410_GPIO_BANKH + 32) > +#endif > diff --git a/arch/arm/plat-s3c24xx/gpiolib.c > b/arch/arm/plat-s3c24xx/gpiolib.c index 4f0f11a..0818a6e 100644 > --- a/arch/arm/plat-s3c24xx/gpiolib.c > +++ b/arch/arm/plat-s3c24xx/gpiolib.c > @@ -26,6 +26,7 @@ > #include <plat/pm.h> > > #include <mach/regs-gpio.h> > +#include <mach/regs-gpioj.h> > > static int s3c24xx_gpiolib_banka_input(struct gpio_chip *chip, unsigned > offset) { > @@ -151,7 +152,8 @@ struct s3c_gpio_chip s3c24xx_gpios[] = { > .ngpio = 16, > .to_irq = s3c24xx_gpiolib_bankg_toirq, > }, > - }, { > + }, > + [7] = { > .base = S3C2410_GPHCON, > .pm = __gpio_pm(&s3c_gpio_pm_2bit), > .chip = { > @@ -161,6 +163,18 @@ struct s3c_gpio_chip s3c24xx_gpios[] = { > .ngpio = 11, > }, > }, > +#ifdef CONFIG_CPU_S3C244X > + [8] = { > + .base = S3C2440_GPJCON, > + .pm = __gpio_pm(&s3c_gpio_pm_2bit), > + .chip = { > + .base = S3C2410_GPJ(0), > + .owner = THIS_MODULE, > + .label = "GPIOJ", > + .ngpio = 13, > + }, > + }, > +#endif > }; > > static __init int s3c24xx_gpiolib_init(void) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100423/c9397c9c/attachment.sig>
next prev parent reply other threads:[~2010-04-23 6:35 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-03-30 8:22 [PATCH v2.6.34-rc2] s3c: Adds support for banks H and J on S3C244X CPUs Christian Pellegrin 2010-03-30 8:22 ` Christian Pellegrin 2010-04-23 6:34 ` Vasily Khoruzhick [this message] 2010-04-23 6:34 ` Vasily Khoruzhick
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=201004230934.14960.anarsoul@gmail.com \ --to=anarsoul@gmail.com \ --cc=ben-linux@fluff.org \ --cc=chripell@fsfe.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-samsung-soc@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: linkBe 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.