Merge branch 'next/irq-s3c24xx' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into next/drivers
From Kukjin Kim <kgene.kim@samsung.com>: Here is finish the irq rework for s3c2412, s3c2440 and s3c2442 into the new structure and eint0 to 3 on the s3c2412. * 'next/irq-s3c24xx' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung: gpio: samsung: fixes build warning with s3c2410_defconfig ARM: S3C24XX: handle s3c2412 eints using new infrastructure ARM: S3C24XX: add soc_is_s3c2412 option ARM: S3C24XX: include first 4 bits of the eint register in irq mapping ARM: S3C24XX: transform s3c2412 irqs into new structure ARM: S3C24XX: modify s3c2412 irq init to initialize all irqs ARM: S3C24XX: move s3c2412 irq init to common code ARM: S3C24XX: use samsung_sync_wakemask in s3c2412 pm ARM: S3C24XX: transform s3c2440 irqs into new structure ARM: S3C24XX: transform s3c2442 irqs into new structure ARM: S3C24XX: integrate s3c2440 irqs into common init ARM: S3C24XX: move s3c2440 irqs to common irq code ARM: S3C24XX: create dedicated irq init functions for s3c2440 and s3c2442 ARM: S3C24XX: move s3c244x irq init to common irq code Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -1122,8 +1122,12 @@ int samsung_gpiolib_to_irq(struct gpio_chip *chip, unsigned int offset)
|
||||
#ifdef CONFIG_PLAT_S3C24XX
|
||||
static int s3c24xx_gpiolib_fbank_to_irq(struct gpio_chip *chip, unsigned offset)
|
||||
{
|
||||
if (offset < 4)
|
||||
return IRQ_EINT0 + offset;
|
||||
if (offset < 4) {
|
||||
if (soc_is_s3c2412())
|
||||
return IRQ_EINT0_2412 + offset;
|
||||
else
|
||||
return IRQ_EINT0 + offset;
|
||||
}
|
||||
|
||||
if (offset < 8)
|
||||
return IRQ_EINT4 + offset - 4;
|
||||
|
Reference in New Issue
Block a user