summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/intc-compact.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2016-01-01 13:28:45 +0100
committerVineet Gupta <vgupta@synopsys.com>2016-05-09 06:02:29 +0200
commit77c8d0d6b3f4ea0989b9ca42fb368cc2aac02495 (patch)
tree5ba977ce5f91690719b836091fead52a78301ec7 /arch/arc/kernel/intc-compact.c
parentARC: [dts] Introduce Timer bindings (diff)
downloadlinux-77c8d0d6b3f4ea0989b9ca42fb368cc2aac02495.tar.xz
linux-77c8d0d6b3f4ea0989b9ca42fb368cc2aac02495.zip
ARC: clockevent: DT based probe
- timer frequency is derived from DT (no longer rely on top level DT "clock-frequency" probed early and exported by asm/clk.h) - TIMER0_IRQ need not be exported across arch code, confined to intc as it is property of same - Any failures in clockevent setup are considered pedantic and system panic()'s as there is no generic fallback (unlike clocksource where a jiffies based soft clocksource always exists) Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/intc-compact.c')
-rw-r--r--arch/arc/kernel/intc-compact.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arc/kernel/intc-compact.c b/arch/arc/kernel/intc-compact.c
index 4195eedeb6d1..d31bc647146d 100644
--- a/arch/arc/kernel/intc-compact.c
+++ b/arch/arc/kernel/intc-compact.c
@@ -14,6 +14,8 @@
#include <linux/irqchip.h>
#include <asm/irq.h>
+#define TIMER0_IRQ 3 /* Fixed by ISA */
+
/*
* Early Hardware specific Interrupt setup
* -Platform independent, needed for each CPU (not foldable into init_IRQ)