]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: change the method for getting the interrupt
authorVikas Sajjan <vikas.sajjan@linaro.org>
Tue, 2 Apr 2013 08:53:01 +0000 (17:53 +0900)
committerInki Dae <daeinki@gmail.com>
Tue, 16 Apr 2013 15:06:51 +0000 (00:06 +0900)
commit73ae29611d8ab80752f12d0b30eeac8a6d22c344
tree7461a9ce9eee5e9a8b236d74e0ceb7601e2922ba
parente81b486abbc0d9c80c5c0e7def121bf9fbc2fb5a
drm/exynos: change the method for getting the interrupt

Replaces the "platform_get_resource() for IORESOURCE_IRQ" with
platform_get_resource_byname().
Both in exynos4 and exynos5, FIMD IP has 3 interrupts in the order: "fifo",
"vsync", and "lcd_sys".
But The FIMD driver expects the "vsync" interrupt to be mentioned as the
1st parameter in the FIMD DT node. So to meet this expectation of the
driver, the FIMD DT node was forced to be made by keeping "vsync" as the
1st paramter.
For example in exynos4, the FIMD DT node has interrupt numbers
mentioned as <11, 1> <11, 0> <11, 2> keeping "vsync" as the 1st paramter.

This patch fixes the above mentioned "hack" of re-ordering of the
FIMD interrupt numbers by getting interrupt resource of FIMD by using
platform_get_resource_byname().

Signed-off-by: Vikas Sajjan <vikas.sajjan@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c