]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: shmobile: r8a7740: Instantiate GIC from C board code in legacy builds
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 17 Dec 2014 13:40:42 +0000 (14:40 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 19 Dec 2014 00:13:08 +0000 (09:13 +0900)
commit06683e7da7593f57b5f0c1ba84a86d3b2d2e7954
tree86ce070f6c7ba06b0ce187a3ca5ad5e4fa5c3855
parent8c418d76b853315aff700d2ea464bf67a0d7fd56
ARM: shmobile: r8a7740: Instantiate GIC from C board code in legacy builds

As of commit 1c0fa7afaba545fd ("irqchip: gic: Support hierarchy irq
domain."), armadillo-legacy hangs during boot with:

     sh-tmu.0: ch0: used for clock events
     sh-tmu.0: ch0: used for periodic clock events
     sh-tmu.0: ch0: failed to request irq 230
     sh-tmu.0: ch1: used as clock source
     sh-cmt-48.1: ch0: failed to request irq 90
     sh-cmt-48.1: ch0: registration failed
    earlytimer: unable to probe sh-cmt-48 early.
    Calibrating delay loop...

This happens because the IRQ numbers of the GIC are now virtual, and no
longer match the hardcoded hardware IRQ numbers in the platform board
code.
To fix this, instantiate the GIC from platform board code when compiling
a legacy kernel, like is done on sh73a0 for kzm9g-legacy.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/setup-r8a7740.c