Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b495737 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Ben Dooks
Browse files

[ARM] S3C64XX: add to_irq() support for EINT() GPIO


N group

Add to_irq() function to onvert gpio to irq for external interrupt
group (GPN).

Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 386f4351
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -321,6 +321,11 @@ static struct s3c_gpio_cfg gpio_2bit_cfg_eint11 = {
	.get_pull	= s3c_gpio_getpull_updown,
};

int s3c64xx_gpio2int_gpn(struct gpio_chip *chip, unsigned pin)
{
	return IRQ_EINT(0) + pin;
}

static struct s3c_gpio_chip gpio_2bit[] = {
	{
		.base	= S3C64XX_GPF_BASE,
@@ -353,6 +358,7 @@ static struct s3c_gpio_chip gpio_2bit[] = {
			.base	= S3C64XX_GPN(0),
			.ngpio	= S3C64XX_GPIO_N_NR,
			.label	= "GPN",
			.to_irq = s3c64xx_gpio2int_gpn,
		},
	}, {
		.base	= S3C64XX_GPO_BASE,