aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2006-09-20 15:32:33 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-09-25 05:33:54 -0400
commitb6c440a98eb3245fb06d411f1bc9d584269e95d5 (patch)
treeeca4fc008b9c20ff8a8e6b871436158b78d3354a /arch/arm
parent1649adc78d46db79510b92ffd58486ca82a86549 (diff)
[ARM] 3840/1: S3C2412: Add machine VSTMS
Add new machine VSTMS Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Thomas Gleixner <tglx@linuxtronix.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-s3c2410/Kconfig6
-rw-r--r--arch/arm/mach-s3c2410/Makefile1
-rw-r--r--arch/arm/mach-s3c2410/mach-vstms.c168
3 files changed, 175 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig
index e555bc5f3029..40bfef006c0c 100644
--- a/arch/arm/mach-s3c2410/Kconfig
+++ b/arch/arm/mach-s3c2410/Kconfig
@@ -126,6 +126,12 @@ config MACH_NEXCODER_2440
126 help 126 help
127 Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board 127 Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board
128 128
129config MACH_VSTMS
130 bool "VMSTMS"
131 select CPU_S3C2412
132 help
133 Say Y here if you are using an VSTMS board
134
129endmenu 135endmenu
130 136
131config S3C2410_CLOCK 137config S3C2410_CLOCK
diff --git a/arch/arm/mach-s3c2410/Makefile b/arch/arm/mach-s3c2410/Makefile
index 758f7e13b488..788f25417d69 100644
--- a/arch/arm/mach-s3c2410/Makefile
+++ b/arch/arm/mach-s3c2410/Makefile
@@ -83,5 +83,6 @@ obj-$(CONFIG_MACH_VR1000) += mach-vr1000.o usb-simtec.o
83obj-$(CONFIG_MACH_RX3715) += mach-rx3715.o 83obj-$(CONFIG_MACH_RX3715) += mach-rx3715.o
84obj-$(CONFIG_MACH_OTOM) += mach-otom.o 84obj-$(CONFIG_MACH_OTOM) += mach-otom.o
85obj-$(CONFIG_MACH_NEXCODER_2440) += mach-nexcoder.o 85obj-$(CONFIG_MACH_NEXCODER_2440) += mach-nexcoder.o
86obj-$(CONFIG_MACH_VSTMS) += mach-vstms.o
86 87
87obj-$(CONFIG_MACH_SMDK) += common-smdk.o \ No newline at end of file 88obj-$(CONFIG_MACH_SMDK) += common-smdk.o \ No newline at end of file
diff --git a/arch/arm/mach-s3c2410/mach-vstms.c b/arch/arm/mach-s3c2410/mach-vstms.c
new file mode 100644
index 000000000000..ea554e7c006e
--- /dev/null
+++ b/arch/arm/mach-s3c2410/mach-vstms.c
@@ -0,0 +1,168 @@
1/* linux/arch/arm/mach-s3c2410/mach-vstms.c
2 *
3 * (C) 2006 Thomas Gleixner <tglx@linutronix.de>
4 *
5 * Derived from mach-smdk2413.c - (C) 2006 Simtec Electronics
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12#include <linux/kernel.h>
13#include <linux/types.h>
14#include <linux/interrupt.h>
15#include <linux/list.h>
16#include <linux/timer.h>
17#include <linux/init.h>
18#include <linux/platform_device.h>
19
20#include <linux/mtd/mtd.h>
21#include <linux/mtd/nand.h>
22#include <linux/mtd/nand_ecc.h>
23#include <linux/mtd/partitions.h>
24
25#include <asm/mach/arch.h>
26#include <asm/mach/map.h>
27#include <asm/mach/irq.h>
28
29#include <asm/hardware.h>
30#include <asm/hardware/iomd.h>
31#include <asm/setup.h>
32#include <asm/io.h>
33#include <asm/irq.h>
34#include <asm/mach-types.h>
35
36#include <asm/arch/regs-serial.h>
37#include <asm/arch/regs-gpio.h>
38#include <asm/arch/regs-lcd.h>
39
40#include <asm/arch/idle.h>
41#include <asm/arch/fb.h>
42
43#include <asm/arch/nand.h>
44
45#include "s3c2410.h"
46#include "s3c2412.h"
47#include "clock.h"
48#include "devs.h"
49#include "cpu.h"
50
51
52static struct map_desc vstms_iodesc[] __initdata = {
53};
54
55static struct s3c2410_uartcfg vstms_uartcfgs[] __initdata = {
56 [0] = {
57 .hwport = 0,
58 .flags = 0,
59 .ucon = 0x3c5,
60 .ulcon = 0x03,
61 .ufcon = 0x51,
62 },
63 [1] = {
64 .hwport = 1,
65 .flags = 0,
66 .ucon = 0x3c5,
67 .ulcon = 0x03,
68 .ufcon = 0x51,
69 },
70 [2] = {
71 .hwport = 2,
72 .flags = 0,
73 .ucon = 0x3c5,
74 .ulcon = 0x03,
75 .ufcon = 0x51,
76 }
77};
78
79static struct mtd_partition vstms_nand_part[] = {
80 [0] = {
81 .name = "Boot Agent",
82 .size = 0x7C000,
83 .offset = 0,
84 },
85 [1] = {
86 .name = "UBoot Config",
87 .offset = 0x7C000,
88 .size = 0x4000,
89 },
90 [2] = {
91 .name = "Kernel",
92 .offset = 0x80000,
93 .size = 0x200000,
94 },
95 [3] = {
96 .name = "RFS",
97 .offset = 0x280000,
98 .size = 0x3d80000,
99 },
100};
101
102static struct s3c2410_nand_set vstms_nand_sets[] = {
103 [0] = {
104 .name = "NAND",
105 .nr_chips = 1,
106 .nr_partitions = ARRAY_SIZE(vstms_nand_part),
107 .partitions = vstms_nand_part,
108 },
109};
110
111/* choose a set of timings which should suit most 512Mbit
112 * chips and beyond.
113*/
114
115static struct s3c2410_platform_nand vstms_nand_info = {
116 .tacls = 20,
117 .twrph0 = 60,
118 .twrph1 = 20,
119 .nr_sets = ARRAY_SIZE(vstms_nand_sets),
120 .sets = vstms_nand_sets,
121};
122
123static struct platform_device *vstms_devices[] __initdata = {
124 &s3c_device_usb,
125 &s3c_device_wdt,
126 &s3c_device_i2c,
127 &s3c_device_iis,
128 &s3c_device_rtc,
129 &s3c_device_nand,
130};
131
132static struct s3c24xx_board vstms_board __initdata = {
133 .devices = vstms_devices,
134 .devices_count = ARRAY_SIZE(vstms_devices)
135};
136
137static void __init vstms_fixup(struct machine_desc *desc,
138 struct tag *tags, char **cmdline,
139 struct meminfo *mi)
140{
141 if (tags != phys_to_virt(S3C2410_SDRAM_PA + 0x100)) {
142 mi->nr_banks=1;
143 mi->bank[0].start = 0x30000000;
144 mi->bank[0].size = SZ_64M;
145 mi->bank[0].node = 0;
146 }
147}
148
149static void __init vstms_map_io(void)
150{
151 s3c_device_nand.dev.platform_data = &vstms_nand_info;
152
153 s3c24xx_init_io(vstms_iodesc, ARRAY_SIZE(vstms_iodesc));
154 s3c24xx_init_clocks(12000000);
155 s3c24xx_init_uarts(vstms_uartcfgs, ARRAY_SIZE(vstms_uartcfgs));
156 s3c24xx_set_board(&vstms_board);
157}
158
159MACHINE_START(VSTMS, "VSTMS")
160 .phys_io = S3C2410_PA_UART,
161 .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
162 .boot_params = S3C2410_SDRAM_PA + 0x100,
163
164 .fixup = vstms_fixup,
165 .init_irq = s3c24xx_init_irq,
166 .map_io = vstms_map_io,
167 .timer = &s3c24xx_timer,
168MACHINE_END