diff options
author | Barry Song <Baohua.Song@csr.com> | 2015-01-04 04:40:54 -0500 |
---|---|---|
committer | Barry Song <Baohua.Song@csr.com> | 2015-01-20 06:56:53 -0500 |
commit | 1805f4d6514b70d40bf9468308fa8bdfbfcd3905 (patch) | |
tree | 191435a320ba04b44dcc3fdcfd96b35969470fe8 | |
parent | a7ae982f36389f0b83536d1c5d8f3437bd604d5d (diff) |
ARM: sirf: move to debug_ll_io_init and drop map_io
This patch moves to debug_ll_io_init(), then finally drops CSR map_io()
machine callbacks.
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/mach-prima2/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-prima2/common.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-prima2/lluart.c | 33 |
3 files changed, 0 insertions, 41 deletions
diff --git a/arch/arm/mach-prima2/Makefile b/arch/arm/mach-prima2/Makefile index 8846e7d87ea5..d7d02b043449 100644 --- a/arch/arm/mach-prima2/Makefile +++ b/arch/arm/mach-prima2/Makefile | |||
@@ -1,7 +1,6 @@ | |||
1 | obj-y += rstc.o | 1 | obj-y += rstc.o |
2 | obj-y += common.o | 2 | obj-y += common.o |
3 | obj-y += rtciobrg.o | 3 | obj-y += rtciobrg.o |
4 | obj-$(CONFIG_DEBUG_LL) += lluart.o | ||
5 | obj-$(CONFIG_SUSPEND) += pm.o sleep.o | 4 | obj-$(CONFIG_SUSPEND) += pm.o sleep.o |
6 | obj-$(CONFIG_SMP) += platsmp.o headsmp.o | 5 | obj-$(CONFIG_SMP) += platsmp.o headsmp.o |
7 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | 6 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o |
diff --git a/arch/arm/mach-prima2/common.c b/arch/arm/mach-prima2/common.c index a20b8d4db9ed..c62ff68c7fc4 100644 --- a/arch/arm/mach-prima2/common.c +++ b/arch/arm/mach-prima2/common.c | |||
@@ -20,11 +20,6 @@ static void __init sirfsoc_init_late(void) | |||
20 | sirfsoc_pm_init(); | 20 | sirfsoc_pm_init(); |
21 | } | 21 | } |
22 | 22 | ||
23 | static __init void sirfsoc_map_io(void) | ||
24 | { | ||
25 | sirfsoc_map_lluart(); | ||
26 | } | ||
27 | |||
28 | #ifdef CONFIG_ARCH_ATLAS6 | 23 | #ifdef CONFIG_ARCH_ATLAS6 |
29 | static const char *atlas6_dt_match[] __initconst = { | 24 | static const char *atlas6_dt_match[] __initconst = { |
30 | "sirf,atlas6", | 25 | "sirf,atlas6", |
@@ -35,7 +30,6 @@ DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)") | |||
35 | /* Maintainer: Barry Song <baohua.song@csr.com> */ | 30 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
36 | .l2c_aux_val = 0, | 31 | .l2c_aux_val = 0, |
37 | .l2c_aux_mask = ~0, | 32 | .l2c_aux_mask = ~0, |
38 | .map_io = sirfsoc_map_io, | ||
39 | .init_late = sirfsoc_init_late, | 33 | .init_late = sirfsoc_init_late, |
40 | .dt_compat = atlas6_dt_match, | 34 | .dt_compat = atlas6_dt_match, |
41 | MACHINE_END | 35 | MACHINE_END |
@@ -51,7 +45,6 @@ DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)") | |||
51 | /* Maintainer: Barry Song <baohua.song@csr.com> */ | 45 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
52 | .l2c_aux_val = 0, | 46 | .l2c_aux_val = 0, |
53 | .l2c_aux_mask = ~0, | 47 | .l2c_aux_mask = ~0, |
54 | .map_io = sirfsoc_map_io, | ||
55 | .dma_zone_size = SZ_256M, | 48 | .dma_zone_size = SZ_256M, |
56 | .init_late = sirfsoc_init_late, | 49 | .init_late = sirfsoc_init_late, |
57 | .dt_compat = prima2_dt_match, | 50 | .dt_compat = prima2_dt_match, |
diff --git a/arch/arm/mach-prima2/lluart.c b/arch/arm/mach-prima2/lluart.c deleted file mode 100644 index 20453c14bfd3..000000000000 --- a/arch/arm/mach-prima2/lluart.c +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | /* | ||
2 | * Static memory mapping for DEBUG_LL | ||
3 | * | ||
4 | * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. | ||
5 | * | ||
6 | * Licensed under GPLv2 or later. | ||
7 | */ | ||
8 | |||
9 | #include <linux/kernel.h> | ||
10 | #include <asm/page.h> | ||
11 | #include <asm/mach/map.h> | ||
12 | #include "common.h" | ||
13 | |||
14 | #if defined(CONFIG_DEBUG_SIRFPRIMA2_UART1) | ||
15 | #define SIRFSOC_UART1_PA_BASE 0xb0060000 | ||
16 | #else | ||
17 | #define SIRFSOC_UART1_PA_BASE 0 | ||
18 | #endif | ||
19 | |||
20 | #define SIRFSOC_UART1_VA_BASE SIRFSOC_VA(0x060000) | ||
21 | #define SIRFSOC_UART1_SIZE SZ_4K | ||
22 | |||
23 | void __init sirfsoc_map_lluart(void) | ||
24 | { | ||
25 | struct map_desc sirfsoc_lluart_map = { | ||
26 | .virtual = SIRFSOC_UART1_VA_BASE, | ||
27 | .pfn = __phys_to_pfn(SIRFSOC_UART1_PA_BASE), | ||
28 | .length = SIRFSOC_UART1_SIZE, | ||
29 | .type = MT_DEVICE, | ||
30 | }; | ||
31 | |||
32 | iotable_init(&sirfsoc_lluart_map, 1); | ||
33 | } | ||