]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: S3C24XX: handle s3c2412 eints using new infrastructure
authorHeiko Stuebner <heiko@sntech.de>
Tue, 12 Feb 2013 18:12:09 +0000 (10:12 -0800)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 5 Mar 2013 11:21:31 +0000 (20:21 +0900)
commitfce32c0b8196cf2deecaa380fd1b3483a6bfcedc
tree35d1896ca67c6f007179256678754243e63a97e6
parent563bd708f8fb96d610ee97cf7a8a60af8884ec28
ARM: S3C24XX: handle s3c2412 eints using new infrastructure

The s3c2412 handles the eints 0 to 3 different than all the other SoCs
of the 24xx range. These eints must be acked and masked in the regular
bits as well as the bits 0 to 3 of the eint registers, which are unused
on the other SoCs.

This of course can be realized using the new infrastructure with the
eint bits in the main register being the parent interrupts of the
same bits in the eint register.

The s3c2412 therefore gets its own IRQ_EINT0 to 4 constants that
reside in the newly created gap before IRQ_EINT4. gpio-samsung, as the
only user of these is modified to return the correct values when
handling gpio_to_irq requests on s3c2412 based machines.

Due to lack of hardware this is compile tested only, but should
hopefully work as intended.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s3c24xx/include/mach/irqs.h
arch/arm/mach-s3c24xx/irq.c
drivers/gpio/gpio-samsung.c