diff options
-rw-r--r-- | arch/arm/plat-s3c64xx/gpiolib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c64xx/gpiolib.c b/arch/arm/plat-s3c64xx/gpiolib.c index da7b60ee5e67..92859290ea33 100644 --- a/arch/arm/plat-s3c64xx/gpiolib.c +++ b/arch/arm/plat-s3c64xx/gpiolib.c | |||
@@ -321,6 +321,11 @@ static struct s3c_gpio_cfg gpio_2bit_cfg_eint11 = { | |||
321 | .get_pull = s3c_gpio_getpull_updown, | 321 | .get_pull = s3c_gpio_getpull_updown, |
322 | }; | 322 | }; |
323 | 323 | ||
324 | int s3c64xx_gpio2int_gpn(struct gpio_chip *chip, unsigned pin) | ||
325 | { | ||
326 | return IRQ_EINT(0) + pin; | ||
327 | } | ||
328 | |||
324 | static struct s3c_gpio_chip gpio_2bit[] = { | 329 | static struct s3c_gpio_chip gpio_2bit[] = { |
325 | { | 330 | { |
326 | .base = S3C64XX_GPF_BASE, | 331 | .base = S3C64XX_GPF_BASE, |
@@ -353,6 +358,7 @@ static struct s3c_gpio_chip gpio_2bit[] = { | |||
353 | .base = S3C64XX_GPN(0), | 358 | .base = S3C64XX_GPN(0), |
354 | .ngpio = S3C64XX_GPIO_N_NR, | 359 | .ngpio = S3C64XX_GPIO_N_NR, |
355 | .label = "GPN", | 360 | .label = "GPN", |
361 | .to_irq = s3c64xx_gpio2int_gpn, | ||
356 | }, | 362 | }, |
357 | }, { | 363 | }, { |
358 | .base = S3C64XX_GPO_BASE, | 364 | .base = S3C64XX_GPO_BASE, |