diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arc/Makefile | 16 | ||||
-rw-r--r-- | arch/arc/include/asm/irq.h | 1 | ||||
-rw-r--r-- | arch/arc/kernel/vmlinux.lds.S | 1 | ||||
-rw-r--r-- | arch/arc/plat-arcfpga/Makefile | 2 | ||||
-rw-r--r-- | arch/arc/plat-arcfpga/irq.c | 2 | ||||
-rw-r--r-- | arch/arc/plat-arcfpga/platform.c | 2 | ||||
-rw-r--r-- | arch/arc/plat-arcfpga/smp.c | 3 |
7 files changed, 7 insertions, 20 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 9a36c04e4306..92379c7cbc1a 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile | |||
@@ -10,14 +10,6 @@ UTS_MACHINE := arc | |||
10 | 10 | ||
11 | KBUILD_DEFCONFIG := fpga_defconfig | 11 | KBUILD_DEFCONFIG := fpga_defconfig |
12 | 12 | ||
13 | # For ARC FPGA Platforms | ||
14 | platform-$(CONFIG_ARC_PLAT_FPGA_LEGACY) := arcfpga | ||
15 | #New platform adds here | ||
16 | |||
17 | PLATFORM := $(platform-y) | ||
18 | export PLATFORM | ||
19 | |||
20 | cflags-y += -Iarch/arc/plat-$(PLATFORM)/include | ||
21 | cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__ | 13 | cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__ |
22 | 14 | ||
23 | LINUXINCLUDE += -include ${src}/arch/arc/include/asm/defines.h | 15 | LINUXINCLUDE += -include ${src}/arch/arc/include/asm/defines.h |
@@ -86,9 +78,6 @@ KBUILD_CFLAGS += $(cflags-y) | |||
86 | KBUILD_AFLAGS += $(KBUILD_CFLAGS) | 78 | KBUILD_AFLAGS += $(KBUILD_CFLAGS) |
87 | LDFLAGS += $(ldflags-y) | 79 | LDFLAGS += $(ldflags-y) |
88 | 80 | ||
89 | # Needed for Linker script preprocessing | ||
90 | KBUILD_CPPFLAGS += -Iarch/arc/plat-$(PLATFORM)/include | ||
91 | |||
92 | head-y := arch/arc/kernel/head.o | 81 | head-y := arch/arc/kernel/head.o |
93 | 82 | ||
94 | # See arch/arc/Kbuild for content of core part of the kernel | 83 | # See arch/arc/Kbuild for content of core part of the kernel |
@@ -97,10 +86,7 @@ core-y += arch/arc/ | |||
97 | # w/o this dtb won't embed into kernel binary | 86 | # w/o this dtb won't embed into kernel binary |
98 | core-y += arch/arc/boot/dts/ | 87 | core-y += arch/arc/boot/dts/ |
99 | 88 | ||
100 | # w/o this ifneq, make ARCH=arc clean was crapping out | 89 | core-$(CONFIG_ARC_PLAT_FPGA_LEGACY) += arch/arc/plat-arcfpga/ |
101 | ifneq ($(platform-y),) | ||
102 | core-y += arch/arc/plat-$(PLATFORM)/ | ||
103 | endif | ||
104 | 90 | ||
105 | drivers-$(CONFIG_OPROFILE) += arch/arc/oprofile/ | 91 | drivers-$(CONFIG_OPROFILE) += arch/arc/oprofile/ |
106 | 92 | ||
diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h index f1b318d92877..20aaab8971ad 100644 --- a/arch/arc/include/asm/irq.h +++ b/arch/arc/include/asm/irq.h | |||
@@ -13,7 +13,6 @@ | |||
13 | #define TIMER0_IRQ 3 | 13 | #define TIMER0_IRQ 3 |
14 | #define TIMER1_IRQ 4 | 14 | #define TIMER1_IRQ 4 |
15 | 15 | ||
16 | #include <plat/irq.h> /* Board Specific IRQ assignments */ | ||
17 | #include <asm-generic/irq.h> | 16 | #include <asm-generic/irq.h> |
18 | 17 | ||
19 | extern void __init arc_init_IRQ(void); | 18 | extern void __init arc_init_IRQ(void); |
diff --git a/arch/arc/kernel/vmlinux.lds.S b/arch/arc/kernel/vmlinux.lds.S index 622d8b665a68..d3c92f52d444 100644 --- a/arch/arc/kernel/vmlinux.lds.S +++ b/arch/arc/kernel/vmlinux.lds.S | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <asm/cache.h> | 10 | #include <asm/cache.h> |
11 | #include <asm/page.h> | 11 | #include <asm/page.h> |
12 | #include <asm/thread_info.h> | 12 | #include <asm/thread_info.h> |
13 | #include <plat/memmap.h> | ||
14 | 13 | ||
15 | OUTPUT_ARCH(arc) | 14 | OUTPUT_ARCH(arc) |
16 | ENTRY(_stext) | 15 | ENTRY(_stext) |
diff --git a/arch/arc/plat-arcfpga/Makefile b/arch/arc/plat-arcfpga/Makefile index 2a828bec8212..a44e22ebc1b7 100644 --- a/arch/arc/plat-arcfpga/Makefile +++ b/arch/arc/plat-arcfpga/Makefile | |||
@@ -6,5 +6,7 @@ | |||
6 | # published by the Free Software Foundation. | 6 | # published by the Free Software Foundation. |
7 | # | 7 | # |
8 | 8 | ||
9 | KBUILD_CFLAGS += -Iarch/arc/plat-arcfpga/include | ||
10 | |||
9 | obj-y := platform.o irq.o | 11 | obj-y := platform.o irq.o |
10 | obj-$(CONFIG_SMP) += smp.o | 12 | obj-$(CONFIG_SMP) += smp.o |
diff --git a/arch/arc/plat-arcfpga/irq.c b/arch/arc/plat-arcfpga/irq.c index 0ea43c26f16a..d2215fd889c2 100644 --- a/arch/arc/plat-arcfpga/irq.c +++ b/arch/arc/plat-arcfpga/irq.c | |||
@@ -9,7 +9,7 @@ | |||
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/interrupt.h> | 11 | #include <linux/interrupt.h> |
12 | #include <asm/irq.h> | 12 | #include <plat/irq.h> |
13 | 13 | ||
14 | void __init plat_fpga_init_IRQ(void) | 14 | void __init plat_fpga_init_IRQ(void) |
15 | { | 15 | { |
diff --git a/arch/arc/plat-arcfpga/platform.c b/arch/arc/plat-arcfpga/platform.c index ac85d6927334..4024f10a39ca 100644 --- a/arch/arc/plat-arcfpga/platform.c +++ b/arch/arc/plat-arcfpga/platform.c | |||
@@ -16,11 +16,11 @@ | |||
16 | #include <linux/console.h> | 16 | #include <linux/console.h> |
17 | #include <linux/of_platform.h> | 17 | #include <linux/of_platform.h> |
18 | #include <asm/setup.h> | 18 | #include <asm/setup.h> |
19 | #include <asm/irq.h> | ||
20 | #include <asm/clk.h> | 19 | #include <asm/clk.h> |
21 | #include <asm/mach_desc.h> | 20 | #include <asm/mach_desc.h> |
22 | #include <plat/memmap.h> | 21 | #include <plat/memmap.h> |
23 | #include <plat/smp.h> | 22 | #include <plat/smp.h> |
23 | #include <plat/irq.h> | ||
24 | 24 | ||
25 | /*-----------------------BVCI Latency Unit -----------------------------*/ | 25 | /*-----------------------BVCI Latency Unit -----------------------------*/ |
26 | 26 | ||
diff --git a/arch/arc/plat-arcfpga/smp.c b/arch/arc/plat-arcfpga/smp.c index fec18793bbe0..68a53b153d03 100644 --- a/arch/arc/plat-arcfpga/smp.c +++ b/arch/arc/plat-arcfpga/smp.c | |||
@@ -12,7 +12,8 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/smp.h> | 14 | #include <linux/smp.h> |
15 | #include <asm/irq.h> | 15 | #include <linux/irq.h> |
16 | #include <plat/irq.h> | ||
16 | #include <plat/smp.h> | 17 | #include <plat/smp.h> |
17 | 18 | ||
18 | static char smp_cpuinfo_buf[128]; | 19 | static char smp_cpuinfo_buf[128]; |