diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2010-08-31 03:30:51 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-17 21:33:34 -0400 |
commit | 19a2c06548db1fa69c40be5bf3ad2095d6119871 (patch) | |
tree | c08194d0121bc5dae632aeba254ef641e46015c3 /arch/arm/mach-s5p6440/cpu.c | |
parent | 13904fba37aa00867dee0b4fe13df92fed1120f9 (diff) |
ARM: S5P: Moves initial map for merging S5P64X0
This patch moves some initial maps from plat-s5p to machine,
so that can merge mach-s5p6440 and mach-s5p6450.
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5p6440/cpu.c')
-rw-r--r-- | arch/arm/mach-s5p6440/cpu.c | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/arch/arm/mach-s5p6440/cpu.c b/arch/arm/mach-s5p6440/cpu.c index ec592e866054..8a09e0fc2730 100644 --- a/arch/arm/mach-s5p6440/cpu.c +++ b/arch/arm/mach-s5p6440/cpu.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* linux/arch/arm/mach-s5p6440/cpu.c | 1 | /* linux/arch/arm/mach-s5p6440/cpu.c |
2 | * | 2 | * |
3 | * Copyright (c) 2009 Samsung Electronics Co., Ltd. | 3 | * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd. |
4 | * http://www.samsung.com/ | 4 | * http://www.samsung.com |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
@@ -40,6 +40,32 @@ | |||
40 | #include <plat/s5p6440.h> | 40 | #include <plat/s5p6440.h> |
41 | #include <plat/adc-core.h> | 41 | #include <plat/adc-core.h> |
42 | 42 | ||
43 | /* Initial IO mappings */ | ||
44 | |||
45 | static struct map_desc s5p6440_iodesc[] __initdata = { | ||
46 | { | ||
47 | .virtual = (unsigned long)S5P_VA_GPIO, | ||
48 | .pfn = __phys_to_pfn(S5P6440_PA_GPIO), | ||
49 | .length = SZ_4K, | ||
50 | .type = MT_DEVICE, | ||
51 | }, { | ||
52 | .virtual = (unsigned long)VA_VIC0, | ||
53 | .pfn = __phys_to_pfn(S5P6440_PA_VIC0), | ||
54 | .length = SZ_16K, | ||
55 | .type = MT_DEVICE, | ||
56 | }, { | ||
57 | .virtual = (unsigned long)VA_VIC1, | ||
58 | .pfn = __phys_to_pfn(S5P6440_PA_VIC1), | ||
59 | .length = SZ_16K, | ||
60 | .type = MT_DEVICE, | ||
61 | }, { | ||
62 | .virtual = (unsigned long)S3C_VA_UART, | ||
63 | .pfn = __phys_to_pfn(S3C_PA_UART), | ||
64 | .length = SZ_512K, | ||
65 | .type = MT_DEVICE, | ||
66 | } | ||
67 | }; | ||
68 | |||
43 | static void s5p6440_idle(void) | 69 | static void s5p6440_idle(void) |
44 | { | 70 | { |
45 | unsigned long val; | 71 | unsigned long val; |
@@ -55,15 +81,18 @@ static void s5p6440_idle(void) | |||
55 | local_irq_enable(); | 81 | local_irq_enable(); |
56 | } | 82 | } |
57 | 83 | ||
58 | /* s5p6440_map_io | 84 | /* |
85 | * s5p6440_map_io | ||
59 | * | 86 | * |
60 | * register the standard cpu IO areas | 87 | * register the standard cpu IO areas |
61 | */ | 88 | */ |
62 | 89 | ||
63 | void __init s5p6440_map_io(void) | 90 | void __init s5p6440_map_io(void) |
64 | { | 91 | { |
65 | /* initialize any device information early */ | 92 | /* initialize any device information early */ |
66 | s3c_adc_setname("s3c64xx-adc"); | 93 | s3c_adc_setname("s3c64xx-adc"); |
94 | |||
95 | iotable_init(s5p6440_iodesc, ARRAY_SIZE(s5p6440_iodesc)); | ||
67 | } | 96 | } |
68 | 97 | ||
69 | void __init s5p6440_init_clocks(int xtal) | 98 | void __init s5p6440_init_clocks(int xtal) |