diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2014-09-10 01:49:28 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2014-10-13 05:16:14 -0400 |
commit | 72f933e77cfc8c7e38e7214fd774806eb7ecc038 (patch) | |
tree | a804b9fc0582b95975a79a8784a8a42f7fd237ee /arch/arc/plat-arcfpga | |
parent | d7f8a085d4f48501b1fa253b48ec4ad7cb4d02cc (diff) |
ARC: [arcfpga] Remove more dead code
specifically after switching to generic early arc uart, whole bunch of
code is no longer needed
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/plat-arcfpga')
-rw-r--r-- | arch/arc/plat-arcfpga/include/plat/irq.h | 27 | ||||
-rw-r--r-- | arch/arc/plat-arcfpga/include/plat/memmap.h | 29 | ||||
-rw-r--r-- | arch/arc/plat-arcfpga/platform.c | 20 | ||||
-rw-r--r-- | arch/arc/plat-arcfpga/smp.c | 3 |
4 files changed, 3 insertions, 76 deletions
diff --git a/arch/arc/plat-arcfpga/include/plat/irq.h b/arch/arc/plat-arcfpga/include/plat/irq.h deleted file mode 100644 index 2c9dea690ac4..000000000000 --- a/arch/arc/plat-arcfpga/include/plat/irq.h +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | * | ||
8 | * vineetg: Feb 2009 | ||
9 | * -For AA4 board, IRQ assignments to peripherals | ||
10 | */ | ||
11 | |||
12 | #ifndef __PLAT_IRQ_H | ||
13 | #define __PLAT_IRQ_H | ||
14 | |||
15 | #define UART0_IRQ 5 | ||
16 | #define UART1_IRQ 10 | ||
17 | #define UART2_IRQ 11 | ||
18 | |||
19 | #define IDE_IRQ 13 | ||
20 | #define PCI_IRQ 14 | ||
21 | #define PS2_IRQ 15 | ||
22 | |||
23 | #ifdef CONFIG_SMP | ||
24 | #define IDU_INTERRUPT_0 16 | ||
25 | #endif | ||
26 | |||
27 | #endif | ||
diff --git a/arch/arc/plat-arcfpga/include/plat/memmap.h b/arch/arc/plat-arcfpga/include/plat/memmap.h deleted file mode 100644 index 5c78e6135a1f..000000000000 --- a/arch/arc/plat-arcfpga/include/plat/memmap.h +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | * | ||
8 | * vineetg: Feb 2009 | ||
9 | * -For AA4 board, System Memory Map for Peripherals etc | ||
10 | */ | ||
11 | |||
12 | #ifndef __PLAT_MEMMAP_H | ||
13 | #define __PLAT_MEMMAP_H | ||
14 | |||
15 | #define UART0_BASE 0xC0FC1000 | ||
16 | #define UART1_BASE 0xC0FC1100 | ||
17 | |||
18 | #define IDE_CONTROLLER_BASE 0xC0FC9000 | ||
19 | |||
20 | #define AHB_PCI_HOST_BRG_BASE 0xC0FD0000 | ||
21 | |||
22 | #define PGU_BASEADDR 0xC0FC8000 | ||
23 | #define VLCK_ADDR 0xC0FCF028 | ||
24 | |||
25 | #define BVCI_LAT_UNIT_BASE 0xC0FED000 | ||
26 | |||
27 | #define PS2_BASE_ADDR 0xC0FCC000 | ||
28 | |||
29 | #endif | ||
diff --git a/arch/arc/plat-arcfpga/platform.c b/arch/arc/plat-arcfpga/platform.c index b23d5fc59a48..afc88254acc1 100644 --- a/arch/arc/plat-arcfpga/platform.c +++ b/arch/arc/plat-arcfpga/platform.c | |||
@@ -8,27 +8,9 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/types.h> | ||
12 | #include <linux/init.h> | 11 | #include <linux/init.h> |
13 | #include <linux/device.h> | ||
14 | #include <linux/platform_device.h> | ||
15 | #include <linux/io.h> | ||
16 | #include <linux/console.h> | ||
17 | #include <asm/setup.h> | ||
18 | #include <asm/clk.h> | ||
19 | #include <asm/mach_desc.h> | 12 | #include <asm/mach_desc.h> |
20 | #include <plat/memmap.h> | ||
21 | #include <plat/smp.h> | 13 | #include <plat/smp.h> |
22 | #include <plat/irq.h> | ||
23 | |||
24 | static void __init plat_fpga_early_init(void) | ||
25 | { | ||
26 | pr_info("[plat-arcfpga]: registering early dev resources\n"); | ||
27 | |||
28 | #ifdef CONFIG_ISS_SMP_EXTN | ||
29 | iss_model_init_early_smp(); | ||
30 | #endif | ||
31 | } | ||
32 | 14 | ||
33 | /*----------------------- Machine Descriptions ------------------------------ | 15 | /*----------------------- Machine Descriptions ------------------------------ |
34 | * | 16 | * |
@@ -46,8 +28,8 @@ static const char *legacy_fpga_compat[] __initconst = { | |||
46 | 28 | ||
47 | MACHINE_START(LEGACY_FPGA, "legacy_fpga") | 29 | MACHINE_START(LEGACY_FPGA, "legacy_fpga") |
48 | .dt_compat = legacy_fpga_compat, | 30 | .dt_compat = legacy_fpga_compat, |
49 | .init_early = plat_fpga_early_init, | ||
50 | #ifdef CONFIG_ISS_SMP_EXTN | 31 | #ifdef CONFIG_ISS_SMP_EXTN |
32 | .init_early = iss_model_init_early_smp, | ||
51 | .init_smp = iss_model_init_smp, | 33 | .init_smp = iss_model_init_smp, |
52 | #endif | 34 | #endif |
53 | MACHINE_END | 35 | MACHINE_END |
diff --git a/arch/arc/plat-arcfpga/smp.c b/arch/arc/plat-arcfpga/smp.c index 92bad9122077..64797ba3bbe3 100644 --- a/arch/arc/plat-arcfpga/smp.c +++ b/arch/arc/plat-arcfpga/smp.c | |||
@@ -13,9 +13,10 @@ | |||
13 | 13 | ||
14 | #include <linux/smp.h> | 14 | #include <linux/smp.h> |
15 | #include <linux/irq.h> | 15 | #include <linux/irq.h> |
16 | #include <plat/irq.h> | ||
17 | #include <plat/smp.h> | 16 | #include <plat/smp.h> |
18 | 17 | ||
18 | #define IDU_INTERRUPT_0 16 | ||
19 | |||
19 | static char smp_cpuinfo_buf[128]; | 20 | static char smp_cpuinfo_buf[128]; |
20 | 21 | ||
21 | /* | 22 | /* |