diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-highbank/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-highbank/core.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-highbank/highbank.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-highbank/lluart.c | 34 |
4 files changed, 2 insertions, 46 deletions
diff --git a/arch/arm/mach-highbank/Makefile b/arch/arm/mach-highbank/Makefile index 3ec8bdd25d09..8a1ef576d79f 100644 --- a/arch/arm/mach-highbank/Makefile +++ b/arch/arm/mach-highbank/Makefile | |||
@@ -3,7 +3,6 @@ obj-y := highbank.o system.o smc.o | |||
3 | plus_sec := $(call as-instr,.arch_extension sec,+sec) | 3 | plus_sec := $(call as-instr,.arch_extension sec,+sec) |
4 | AFLAGS_smc.o :=-Wa,-march=armv7-a$(plus_sec) | 4 | AFLAGS_smc.o :=-Wa,-march=armv7-a$(plus_sec) |
5 | 5 | ||
6 | obj-$(CONFIG_DEBUG_HIGHBANK_UART) += lluart.o | ||
7 | obj-$(CONFIG_SMP) += platsmp.o | 6 | obj-$(CONFIG_SMP) += platsmp.o |
8 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | 7 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o |
9 | obj-$(CONFIG_PM_SLEEP) += pm.o | 8 | obj-$(CONFIG_PM_SLEEP) += pm.o |
diff --git a/arch/arm/mach-highbank/core.h b/arch/arm/mach-highbank/core.h index 286ec82a4f63..603b536234a2 100644 --- a/arch/arm/mach-highbank/core.h +++ b/arch/arm/mach-highbank/core.h | |||
@@ -2,11 +2,6 @@ extern void highbank_set_cpu_jump(int cpu, void *jump_addr); | |||
2 | extern void highbank_clocks_init(void); | 2 | extern void highbank_clocks_init(void); |
3 | extern void highbank_restart(char, const char *); | 3 | extern void highbank_restart(char, const char *); |
4 | extern void __iomem *scu_base_addr; | 4 | extern void __iomem *scu_base_addr; |
5 | #ifdef CONFIG_DEBUG_HIGHBANK_UART | ||
6 | extern void highbank_lluart_map_io(void); | ||
7 | #else | ||
8 | static inline void highbank_lluart_map_io(void) {} | ||
9 | #endif | ||
10 | 5 | ||
11 | #ifdef CONFIG_PM_SLEEP | 6 | #ifdef CONFIG_PM_SLEEP |
12 | extern void highbank_pm_init(void); | 7 | extern void highbank_pm_init(void); |
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c index 3e60e5744157..dc248167d206 100644 --- a/arch/arm/mach-highbank/highbank.c +++ b/arch/arm/mach-highbank/highbank.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <asm/hardware/gic.h> | 35 | #include <asm/hardware/gic.h> |
36 | #include <asm/hardware/cache-l2x0.h> | 36 | #include <asm/hardware/cache-l2x0.h> |
37 | #include <asm/mach/arch.h> | 37 | #include <asm/mach/arch.h> |
38 | #include <asm/mach/map.h> | ||
38 | #include <asm/mach/time.h> | 39 | #include <asm/mach/time.h> |
39 | 40 | ||
40 | #include "core.h" | 41 | #include "core.h" |
@@ -53,11 +54,6 @@ static void __init highbank_scu_map_io(void) | |||
53 | scu_base_addr = ioremap(base, SZ_4K); | 54 | scu_base_addr = ioremap(base, SZ_4K); |
54 | } | 55 | } |
55 | 56 | ||
56 | static void __init highbank_map_io(void) | ||
57 | { | ||
58 | highbank_lluart_map_io(); | ||
59 | } | ||
60 | |||
61 | #define HB_JUMP_TABLE_PHYS(cpu) (0x40 + (0x10 * (cpu))) | 57 | #define HB_JUMP_TABLE_PHYS(cpu) (0x40 + (0x10 * (cpu))) |
62 | #define HB_JUMP_TABLE_VIRT(cpu) phys_to_virt(HB_JUMP_TABLE_PHYS(cpu)) | 58 | #define HB_JUMP_TABLE_VIRT(cpu) phys_to_virt(HB_JUMP_TABLE_PHYS(cpu)) |
63 | 59 | ||
@@ -211,7 +207,7 @@ static const char *highbank_match[] __initconst = { | |||
211 | 207 | ||
212 | DT_MACHINE_START(HIGHBANK, "Highbank") | 208 | DT_MACHINE_START(HIGHBANK, "Highbank") |
213 | .smp = smp_ops(highbank_smp_ops), | 209 | .smp = smp_ops(highbank_smp_ops), |
214 | .map_io = highbank_map_io, | 210 | .map_io = debug_ll_io_init, |
215 | .init_irq = highbank_init_irq, | 211 | .init_irq = highbank_init_irq, |
216 | .timer = &highbank_timer, | 212 | .timer = &highbank_timer, |
217 | .handle_irq = gic_handle_irq, | 213 | .handle_irq = gic_handle_irq, |
diff --git a/arch/arm/mach-highbank/lluart.c b/arch/arm/mach-highbank/lluart.c deleted file mode 100644 index 371575019f33..000000000000 --- a/arch/arm/mach-highbank/lluart.c +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2011 Calxeda, Inc. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms and conditions of the GNU General Public License, | ||
6 | * version 2, as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
11 | * more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License along with | ||
14 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include <linux/init.h> | ||
17 | #include <asm/page.h> | ||
18 | #include <asm/sizes.h> | ||
19 | #include <asm/mach/map.h> | ||
20 | |||
21 | #define HB_DEBUG_LL_PHYS_BASE 0xfff36000 | ||
22 | #define HB_DEBUG_LL_VIRT_BASE 0xfee36000 | ||
23 | |||
24 | static struct map_desc lluart_io_desc __initdata = { | ||
25 | .virtual = HB_DEBUG_LL_VIRT_BASE, | ||
26 | .pfn = __phys_to_pfn(HB_DEBUG_LL_PHYS_BASE), | ||
27 | .length = SZ_4K, | ||
28 | .type = MT_DEVICE, | ||
29 | }; | ||
30 | |||
31 | void __init highbank_lluart_map_io(void) | ||
32 | { | ||
33 | iotable_init(&lluart_io_desc, 1); | ||
34 | } | ||