diff options
author | Magnus Damm <damm+renesas@opensource.se> | 2015-01-29 08:25:32 +0100 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2015-01-29 09:52:38 +0100 |
commit | 77cf5166f21c3b73b04571311dc89a327424f594 (patch) | |
tree | 3894ebd9e358869a6d7e79507bb70c534e440675 /arch/arm/mach-shmobile/timer.c | |
parent | ARM: shmobile: r8a73a4: Instantiate GIC from C board code in legacy builds (diff) | |
download | linux-77cf5166f21c3b73b04571311dc89a327424f594.tar.xz linux-77cf5166f21c3b73b04571311dc89a327424f594.zip |
ARM: shmobile: r8a7790: Instantiate GIC from C board code in legacy builds
As of commit 9a1091ef0017c40a ("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>
Diffstat (limited to '')
-rw-r--r-- | arch/arm/mach-shmobile/timer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/timer.c b/arch/arm/mach-shmobile/timer.c index 44d32a84b001..88f067bcec94 100644 --- a/arch/arm/mach-shmobile/timer.c +++ b/arch/arm/mach-shmobile/timer.c @@ -80,6 +80,11 @@ void __init shmobile_init_delay(void) * to GIC being initialized from C and arch timer via DT */ if (of_machine_is_compatible("renesas,r8a73a4")) has_arch_timer = false; + + /* Non-multiplatform r8a7790 SoC cannot use arch timer due + * to GIC being initialized from C and arch timer via DT */ + if (of_machine_is_compatible("renesas,r8a7790")) + has_arch_timer = false; #endif if (!has_arch_timer || !IS_ENABLED(CONFIG_ARM_ARCH_TIMER)) { |