diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2016-10-31 14:27:08 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2016-11-30 14:54:25 -0500 |
commit | 2d7f5c48c03ee53ad649cbf803dc33730f955234 (patch) | |
tree | afde6d7fd51913d812e97ed9cb19e29e6e2151f0 | |
parent | c33a605dd6f36618f9f658e71c09fcdcb44fc500 (diff) |
ARC: move mcip.h into include/soc and adjust the includes
Also remove the dependency on ARCv2, to increase compile coverage for
!ARCV2 builds
Acked-by: Daniel Lezcano <daniel.lezcnao@linaro.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/kernel/mcip.c | 2 | ||||
-rw-r--r-- | arch/arc/kernel/time.c | 2 | ||||
-rw-r--r-- | arch/arc/plat-axs10x/axs10x.c | 2 | ||||
-rw-r--r-- | include/soc/arc/mcip.h (renamed from arch/arc/include/asm/mcip.h) | 8 |
4 files changed, 5 insertions, 9 deletions
diff --git a/arch/arc/kernel/mcip.c b/arch/arc/kernel/mcip.c index f39142acc89e..560c4afc2af4 100644 --- a/arch/arc/kernel/mcip.c +++ b/arch/arc/kernel/mcip.c | |||
@@ -11,8 +11,8 @@ | |||
11 | #include <linux/smp.h> | 11 | #include <linux/smp.h> |
12 | #include <linux/irq.h> | 12 | #include <linux/irq.h> |
13 | #include <linux/spinlock.h> | 13 | #include <linux/spinlock.h> |
14 | #include <soc/arc/mcip.h> | ||
14 | #include <asm/irqflags-arcv2.h> | 15 | #include <asm/irqflags-arcv2.h> |
15 | #include <asm/mcip.h> | ||
16 | #include <asm/setup.h> | 16 | #include <asm/setup.h> |
17 | 17 | ||
18 | static DEFINE_RAW_SPINLOCK(mcip_lock); | 18 | static DEFINE_RAW_SPINLOCK(mcip_lock); |
diff --git a/arch/arc/kernel/time.c b/arch/arc/kernel/time.c index 417d32e031d3..ec1b896f27b2 100644 --- a/arch/arc/kernel/time.c +++ b/arch/arc/kernel/time.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #include <asm/irq.h> | 40 | #include <asm/irq.h> |
41 | #include <asm/arcregs.h> | 41 | #include <asm/arcregs.h> |
42 | 42 | ||
43 | #include <asm/mcip.h> | 43 | #include <soc/arc/mcip.h> |
44 | 44 | ||
45 | /* Timer related Aux registers */ | 45 | /* Timer related Aux registers */ |
46 | #define ARC_REG_TIMER0_LIMIT 0x23 /* timer 0 limit */ | 46 | #define ARC_REG_TIMER0_LIMIT 0x23 /* timer 0 limit */ |
diff --git a/arch/arc/plat-axs10x/axs10x.c b/arch/arc/plat-axs10x/axs10x.c index 86548701023c..38ff349d7f2a 100644 --- a/arch/arc/plat-axs10x/axs10x.c +++ b/arch/arc/plat-axs10x/axs10x.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <asm/asm-offsets.h> | 21 | #include <asm/asm-offsets.h> |
22 | #include <asm/io.h> | 22 | #include <asm/io.h> |
23 | #include <asm/mach_desc.h> | 23 | #include <asm/mach_desc.h> |
24 | #include <asm/mcip.h> | 24 | #include <soc/arc/mcip.h> |
25 | 25 | ||
26 | #define AXS_MB_CGU 0xE0010000 | 26 | #define AXS_MB_CGU 0xE0010000 |
27 | #define AXS_MB_CREG 0xE0011000 | 27 | #define AXS_MB_CREG 0xE0011000 |
diff --git a/arch/arc/include/asm/mcip.h b/include/soc/arc/mcip.h index fc28d0944801..6902c2a8bd23 100644 --- a/arch/arc/include/asm/mcip.h +++ b/include/soc/arc/mcip.h | |||
@@ -8,10 +8,8 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef __ASM_MCIP_H | 11 | #ifndef __SOC_ARC_MCIP_H |
12 | #define __ASM_MCIP_H | 12 | #define __SOC_ARC_MCIP_H |
13 | |||
14 | #ifdef CONFIG_ISA_ARCV2 | ||
15 | 13 | ||
16 | #include <soc/arc/aux.h> | 14 | #include <soc/arc/aux.h> |
17 | 15 | ||
@@ -103,5 +101,3 @@ static inline void __mcip_cmd_data(unsigned int cmd, unsigned int param, | |||
103 | } | 101 | } |
104 | 102 | ||
105 | #endif | 103 | #endif |
106 | |||
107 | #endif | ||