]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: shmobile: r8a7790: Instantiate GIC from C board code in legacy builds
authorMagnus Damm <damm+renesas@opensource.se>
Thu, 29 Jan 2015 07:25:32 +0000 (16:25 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 29 Jan 2015 08:52:38 +0000 (17:52 +0900)
commitc2e2e46a3de939ea49d1a6ebac5ff54c40dbbce1
tree3894ebd9e358869a6d7e79507bb70c534e440675
parent4d3a2176faa7dbdfc5138b4e61e9cb7c80fca89a
ARM: shmobile: r8a7790: Instantiate GIC from C board code in legacy builds

As of commit 1c0fa7afaba545fd ("irqchip: gic: Support hierarchy irq
domain."), the Lager legacy board support is known to be broken.

The IRQ numbers of the GIC are now virtual, and no longer match the
hardcoded hardware IRQ numbers in the legacy platform board code.

To fix this issue specific to non-multiplatform r8a7790 and Lager:
 1) Instantiate the GIC from platform board code and also
 2) Skip over the DT arch timer as well as
 3) Force delay setup based on DT CPU frequency

With these 3 fixes in place interrupts on Lager are now unbroken.

Partially based on legacy GIC fix by Geert Uytterhoeven, thanks to
him for the initial work.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-lager.c
arch/arm/mach-shmobile/setup-rcar-gen2.c
arch/arm/mach-shmobile/timer.c