|
|
|
Re: [PATCH] S3C64XX: Add gpio_to_irq method for external interrupt group. | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
On Tue, Mar 31, 2009 at 10:01:49PM +0800, Matt Hsu wrote:
> Add to_irq method to convert gpio to irq
> for external interrupt group (GPN).
>
> Signed-off-by: Matt Hsu <matt_hsu@xxxxxxxxxxxx>
Added to 'next-s3c64xx-core' branch. Sorry for the delay.
> arch/arm/plat-s3c64xx/gpiolib.c | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/plat-s3c64xx/gpiolib.c b/arch/arm/plat-s3c64xx/gpiolib.c
> index 09bd681..6bb96d8 100644
> --- a/arch/arm/plat-s3c64xx/gpiolib.c
> +++ b/arch/arm/plat-s3c64xx/gpiolib.c
> @@ -18,6 +18,7 @@
>
> #include <mach/map.h>
> #include <mach/gpio.h>
> +#include <mach/irqs.h>
> #include <mach/gpio-core.h>
>
> #include <plat/gpio-cfg.h>
> @@ -321,6 +322,11 @@ static struct s3c_gpio_cfg gpio_2bit_cfg_eint11 = {
> .get_pull = s3c_gpio_getpull_updown,
> };
>
> +static int s3c_gpiolib_bankn_toirq(struct gpio_chip *chip, unsigned offset)
> +{
> + return S3C_EINT(0) + offset;
> +}
> +
> static struct s3c_gpio_chip gpio_2bit[] = {
> {
> .base = S3C64XX_GPF_BASE,
> @@ -353,6 +359,7 @@ static struct s3c_gpio_chip gpio_2bit[] = {
> .base = S3C64XX_GPN(0),
> .ngpio = S3C64XX_GPIO_N_NR,
> .label = "GPN",
> + .to_irq = s3c_gpiolib_bankn_toirq,
> },
> }, {
> .base = S3C64XX_GPO_BASE,
> --
> 1.6.2
>
>
> -------------------------------------------------------------------
> List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
> FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
> Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
--
--
Ben
Q: What's a light-year?
A: One-third less calories than a regular year.
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Linux ARM] [Linux ARM MSM] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Asterisk Internet PBX] [Linux API]
![]() |
![]() |