ARM: shmobile: r8a7778: split r8a7778_init_irq_extpin() for DT
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 2 Oct 2013 08:31:40 +0000 (01:31 -0700)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 8 Oct 2013 00:53:01 +0000 (09:53 +0900)
commit2238577b2c91587daf5f87ce414ef5b3703f81af
tree38ce96c6d9c772167aca8927a42cd22b16ced335
parentf6ca6f11c921b227e33c5e91084be5ef30c32771
ARM: shmobile: r8a7778: split r8a7778_init_irq_extpin() for DT

r8a7778 INTC needs IRL pin mode settings to determine
behavior of IRQ0 - IRQ3, and r8a7778_init_irq_extpin()
is controlling it via irlm parameter.
But this function registers renesas_intc_irqpin driver
if irlm was set, and this value depends on platform.
This is not good for DT.
This patch splits r8a7778_init_irq_extpin() function
into "mode settings" and "funtion register" parts.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/include/mach/r8a7778.h
arch/arm/mach-shmobile/setup-r8a7778.c