diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2010-08-06 07:12:06 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-20 18:51:45 -0400 |
commit | c05b48af822c415baeadafa6c4a4ea7f79f337db (patch) | |
tree | 5d97fcd445e9e89ed91445d3168da79d1ed1c075 /arch/arm/mach-s5pv310 | |
parent | fe0cdec8bad919fd91cd344123906a55f3857209 (diff) |
ARM: S5PV310: Add SMDKC210 board support file
This patch adds Samsung SMDKC210 board support file. The SoC
of SMDKC210, S5PC210(MCP) is one of package option of S5PV310.
And because composition of SMDKC210 and SMDKV310 differs, need
SMDKC210 with SMDKV310.
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pv310')
-rw-r--r-- | arch/arm/mach-s5pv310/Kconfig | 8 | ||||
-rw-r--r-- | arch/arm/mach-s5pv310/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5pv310/mach-smdkc210.c | 89 |
3 files changed, 98 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv310/Kconfig b/arch/arm/mach-s5pv310/Kconfig index 331b5bd97aba..ae8e55405dd9 100644 --- a/arch/arm/mach-s5pv310/Kconfig +++ b/arch/arm/mach-s5pv310/Kconfig | |||
@@ -27,6 +27,14 @@ config S5PV310_SETUP_I2C2 | |||
27 | 27 | ||
28 | # machine support | 28 | # machine support |
29 | 29 | ||
30 | config MACH_SMDKC210 | ||
31 | bool "SMDKC210" | ||
32 | select CPU_S5PV310 | ||
33 | select ARCH_SPARSEMEM_ENABLE | ||
34 | help | ||
35 | Machine support for Samsung SMDKC210 | ||
36 | S5PC210(MCP) is one of package option of S5PV310 | ||
37 | |||
30 | config MACH_SMDKV310 | 38 | config MACH_SMDKV310 |
31 | bool "SMDKV310" | 39 | bool "SMDKV310" |
32 | select CPU_S5PV310 | 40 | select CPU_S5PV310 |
diff --git a/arch/arm/mach-s5pv310/Makefile b/arch/arm/mach-s5pv310/Makefile index d5b51c72340f..aefb14f23b8a 100644 --- a/arch/arm/mach-s5pv310/Makefile +++ b/arch/arm/mach-s5pv310/Makefile | |||
@@ -21,6 +21,7 @@ obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | |||
21 | 21 | ||
22 | # machine support | 22 | # machine support |
23 | 23 | ||
24 | obj-$(CONFIG_MACH_SMDKC210) += mach-smdkc210.o | ||
24 | obj-$(CONFIG_MACH_SMDKV310) += mach-smdkv310.o | 25 | obj-$(CONFIG_MACH_SMDKV310) += mach-smdkv310.o |
25 | obj-$(CONFIG_MACH_UNIVERSAL_C210) += mach-universal_c210.o | 26 | obj-$(CONFIG_MACH_UNIVERSAL_C210) += mach-universal_c210.o |
26 | 27 | ||
diff --git a/arch/arm/mach-s5pv310/mach-smdkc210.c b/arch/arm/mach-s5pv310/mach-smdkc210.c new file mode 100644 index 000000000000..656de0123907 --- /dev/null +++ b/arch/arm/mach-s5pv310/mach-smdkc210.c | |||
@@ -0,0 +1,89 @@ | |||
1 | /* linux/arch/arm/mach-s5pv310/mach-smdkc210.c | ||
2 | * | ||
3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | ||
4 | * http://www.samsung.com/ | ||
5 | * | ||
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 | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #include <linux/serial_core.h> | ||
12 | |||
13 | #include <asm/mach/arch.h> | ||
14 | #include <asm/mach-types.h> | ||
15 | #include <asm/hardware/cache-l2x0.h> | ||
16 | |||
17 | #include <plat/regs-serial.h> | ||
18 | #include <plat/s5pv310.h> | ||
19 | #include <plat/cpu.h> | ||
20 | |||
21 | #include <mach/map.h> | ||
22 | |||
23 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | ||
24 | #define SMDKC210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | ||
25 | S3C2410_UCON_RXILEVEL | \ | ||
26 | S3C2410_UCON_TXIRQMODE | \ | ||
27 | S3C2410_UCON_RXIRQMODE | \ | ||
28 | S3C2410_UCON_RXFIFO_TOI | \ | ||
29 | S3C2443_UCON_RXERR_IRQEN) | ||
30 | |||
31 | #define SMDKC210_ULCON_DEFAULT S3C2410_LCON_CS8 | ||
32 | |||
33 | #define SMDKC210_UFCON_DEFAULT (S3C2410_UFCON_FIFOMODE | \ | ||
34 | S5PV210_UFCON_TXTRIG4 | \ | ||
35 | S5PV210_UFCON_RXTRIG4) | ||
36 | |||
37 | static struct s3c2410_uartcfg smdkc210_uartcfgs[] __initdata = { | ||
38 | [0] = { | ||
39 | .hwport = 0, | ||
40 | .flags = 0, | ||
41 | .ucon = SMDKC210_UCON_DEFAULT, | ||
42 | .ulcon = SMDKC210_ULCON_DEFAULT, | ||
43 | .ufcon = SMDKC210_UFCON_DEFAULT, | ||
44 | }, | ||
45 | [1] = { | ||
46 | .hwport = 1, | ||
47 | .flags = 0, | ||
48 | .ucon = SMDKC210_UCON_DEFAULT, | ||
49 | .ulcon = SMDKC210_ULCON_DEFAULT, | ||
50 | .ufcon = SMDKC210_UFCON_DEFAULT, | ||
51 | }, | ||
52 | [2] = { | ||
53 | .hwport = 2, | ||
54 | .flags = 0, | ||
55 | .ucon = SMDKC210_UCON_DEFAULT, | ||
56 | .ulcon = SMDKC210_ULCON_DEFAULT, | ||
57 | .ufcon = SMDKC210_UFCON_DEFAULT, | ||
58 | }, | ||
59 | [3] = { | ||
60 | .hwport = 3, | ||
61 | .flags = 0, | ||
62 | .ucon = SMDKC210_UCON_DEFAULT, | ||
63 | .ulcon = SMDKC210_ULCON_DEFAULT, | ||
64 | .ufcon = SMDKC210_UFCON_DEFAULT, | ||
65 | }, | ||
66 | }; | ||
67 | |||
68 | static void __init smdkc210_map_io(void) | ||
69 | { | ||
70 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | ||
71 | s3c24xx_init_clocks(24000000); | ||
72 | s3c24xx_init_uarts(smdkc210_uartcfgs, ARRAY_SIZE(smdkc210_uartcfgs)); | ||
73 | } | ||
74 | |||
75 | static void __init smdkc210_machine_init(void) | ||
76 | { | ||
77 | #ifdef CONFIG_CACHE_L2X0 | ||
78 | l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff); | ||
79 | #endif | ||
80 | } | ||
81 | |||
82 | MACHINE_START(SMDKC210, "SMDKC210") | ||
83 | /* Maintainer: Kukjin Kim <kgene.kim@samsung.com> */ | ||
84 | .boot_params = S5P_PA_SDRAM + 0x100, | ||
85 | .init_irq = s5pv310_init_irq, | ||
86 | .map_io = smdkc210_map_io, | ||
87 | .init_machine = smdkc210_machine_init, | ||
88 | .timer = &s5pv310_timer, | ||
89 | MACHINE_END | ||