diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-18 05:29:51 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-18 05:29:51 -0400 |
commit | a2e0d6249fa866ce7f5a8fe08a4d75511e4701c6 (patch) | |
tree | 9ff61cc5edcc4f59f2f170d390c174a7a50a12fa /arch/arm/plat-s5p | |
parent | 49b7a491b797305a0dc373e7f7a5d2a87955c819 (diff) |
ARM: S5P64X0: Add S5P64X0(S5P6440 and S5P6450) initialization support
This patch adds ARCH_S5P64X0 which can support S5P6440 and S5P6450 with
one kernel image. So moved some files of mach-s5p6440 into the new ARCH
directory mach-s5p64x0.
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-s5p')
-rw-r--r-- | arch/arm/plat-s5p/cpu.c | 12 | ||||
-rw-r--r-- | arch/arm/plat-s5p/include/plat/s5p6440.h | 7 | ||||
-rw-r--r-- | arch/arm/plat-s5p/include/plat/s5p6450.h | 36 |
3 files changed, 50 insertions, 5 deletions
diff --git a/arch/arm/plat-s5p/cpu.c b/arch/arm/plat-s5p/cpu.c index 57f08eee6d62..74f7f5a5446c 100644 --- a/arch/arm/plat-s5p/cpu.c +++ b/arch/arm/plat-s5p/cpu.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <plat/cpu.h> | 19 | #include <plat/cpu.h> |
20 | #include <plat/s5p6440.h> | 20 | #include <plat/s5p6440.h> |
21 | #include <plat/s5p6442.h> | 21 | #include <plat/s5p6442.h> |
22 | #include <plat/s5p6450.h> | ||
22 | #include <plat/s5pc100.h> | 23 | #include <plat/s5pc100.h> |
23 | #include <plat/s5pv210.h> | 24 | #include <plat/s5pv210.h> |
24 | #include <plat/s5pv310.h> | 25 | #include <plat/s5pv310.h> |
@@ -27,6 +28,7 @@ | |||
27 | 28 | ||
28 | static const char name_s5p6440[] = "S5P6440"; | 29 | static const char name_s5p6440[] = "S5P6440"; |
29 | static const char name_s5p6442[] = "S5P6442"; | 30 | static const char name_s5p6442[] = "S5P6442"; |
31 | static const char name_s5p6450[] = "S5P6450"; | ||
30 | static const char name_s5pc100[] = "S5PC100"; | 32 | static const char name_s5pc100[] = "S5PC100"; |
31 | static const char name_s5pv210[] = "S5PV210/S5PC110"; | 33 | static const char name_s5pv210[] = "S5PV210/S5PC110"; |
32 | static const char name_s5pv310[] = "S5PV310"; | 34 | static const char name_s5pv310[] = "S5PV310"; |
@@ -38,7 +40,7 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
38 | .map_io = s5p6440_map_io, | 40 | .map_io = s5p6440_map_io, |
39 | .init_clocks = s5p6440_init_clocks, | 41 | .init_clocks = s5p6440_init_clocks, |
40 | .init_uarts = s5p6440_init_uarts, | 42 | .init_uarts = s5p6440_init_uarts, |
41 | .init = s5p6440_init, | 43 | .init = s5p64x0_init, |
42 | .name = name_s5p6440, | 44 | .name = name_s5p6440, |
43 | }, { | 45 | }, { |
44 | .idcode = 0x36442000, | 46 | .idcode = 0x36442000, |
@@ -49,6 +51,14 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
49 | .init = s5p6442_init, | 51 | .init = s5p6442_init, |
50 | .name = name_s5p6442, | 52 | .name = name_s5p6442, |
51 | }, { | 53 | }, { |
54 | .idcode = 0x36450000, | ||
55 | .idmask = 0xffffff00, | ||
56 | .map_io = s5p6450_map_io, | ||
57 | .init_clocks = s5p6450_init_clocks, | ||
58 | .init_uarts = s5p6450_init_uarts, | ||
59 | .init = s5p64x0_init, | ||
60 | .name = name_s5p6450, | ||
61 | }, { | ||
52 | .idcode = 0x43100000, | 62 | .idcode = 0x43100000, |
53 | .idmask = 0xfffff000, | 63 | .idmask = 0xfffff000, |
54 | .map_io = s5pc100_map_io, | 64 | .map_io = s5pc100_map_io, |
diff --git a/arch/arm/plat-s5p/include/plat/s5p6440.h b/arch/arm/plat-s5p/include/plat/s5p6440.h index a4cd75afeb3b..528585d2cafc 100644 --- a/arch/arm/plat-s5p/include/plat/s5p6440.h +++ b/arch/arm/plat-s5p/include/plat/s5p6440.h | |||
@@ -12,24 +12,23 @@ | |||
12 | 12 | ||
13 | /* Common init code for S5P6440 related SoCs */ | 13 | /* Common init code for S5P6440 related SoCs */ |
14 | 14 | ||
15 | extern void s5p6440_common_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
16 | extern void s5p6440_register_clocks(void); | 15 | extern void s5p6440_register_clocks(void); |
17 | extern void s5p6440_setup_clocks(void); | 16 | extern void s5p6440_setup_clocks(void); |
18 | 17 | ||
19 | #ifdef CONFIG_CPU_S5P6440 | 18 | #ifdef CONFIG_CPU_S5P6440 |
20 | 19 | ||
21 | extern int s5p6440_init(void); | 20 | extern int s5p64x0_init(void); |
22 | extern void s5p6440_init_irq(void); | 21 | extern void s5p6440_init_irq(void); |
23 | extern void s5p6440_map_io(void); | 22 | extern void s5p6440_map_io(void); |
24 | extern void s5p6440_init_clocks(int xtal); | 23 | extern void s5p6440_init_clocks(int xtal); |
25 | 24 | ||
26 | #define s5p6440_init_uarts s5p6440_common_init_uarts | 25 | extern void s5p6440_init_uarts(struct s3c2410_uartcfg *cfg, int no); |
27 | 26 | ||
28 | #else | 27 | #else |
29 | #define s5p6440_init_clocks NULL | 28 | #define s5p6440_init_clocks NULL |
30 | #define s5p6440_init_uarts NULL | 29 | #define s5p6440_init_uarts NULL |
31 | #define s5p6440_map_io NULL | 30 | #define s5p6440_map_io NULL |
32 | #define s5p6440_init NULL | 31 | #define s5p64x0_init NULL |
33 | #endif | 32 | #endif |
34 | 33 | ||
35 | /* S5P6440 timer */ | 34 | /* S5P6440 timer */ |
diff --git a/arch/arm/plat-s5p/include/plat/s5p6450.h b/arch/arm/plat-s5p/include/plat/s5p6450.h new file mode 100644 index 000000000000..640a41c26be3 --- /dev/null +++ b/arch/arm/plat-s5p/include/plat/s5p6450.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* arch/arm/plat-s5p/include/plat/s5p6450.h | ||
2 | * | ||
3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | ||
4 | * http://www.samsung.com | ||
5 | * | ||
6 | * Header file for s5p6450 cpu support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | /* Common init code for S5P6450 related SoCs */ | ||
14 | |||
15 | extern void s5p6450_register_clocks(void); | ||
16 | extern void s5p6450_setup_clocks(void); | ||
17 | |||
18 | #ifdef CONFIG_CPU_S5P6450 | ||
19 | |||
20 | extern int s5p64x0_init(void); | ||
21 | extern void s5p6450_init_irq(void); | ||
22 | extern void s5p6450_map_io(void); | ||
23 | extern void s5p6450_init_clocks(int xtal); | ||
24 | |||
25 | extern void s5p6450_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
26 | |||
27 | #else | ||
28 | #define s5p6450_init_clocks NULL | ||
29 | #define s5p6450_init_uarts NULL | ||
30 | #define s5p6450_map_io NULL | ||
31 | #define s5p64x0_init NULL | ||
32 | #endif | ||
33 | |||
34 | /* S5P6450 timer */ | ||
35 | |||
36 | extern struct sys_timer s5p6450_timer; | ||