diff options
Diffstat (limited to 'arch/arm/mach-s3c2412')
-rw-r--r-- | arch/arm/mach-s3c2412/Kconfig | 9 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/irq.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/mach-smdk2413.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/mach-vstms.c | 12 |
4 files changed, 16 insertions, 13 deletions
diff --git a/arch/arm/mach-s3c2412/Kconfig b/arch/arm/mach-s3c2412/Kconfig index befc5fdbb613..d5be5d053264 100644 --- a/arch/arm/mach-s3c2412/Kconfig +++ b/arch/arm/mach-s3c2412/Kconfig | |||
@@ -47,6 +47,15 @@ config MACH_S3C2413 | |||
47 | machine_is_s3c2413() will work when MACH_SMDK2413 is | 47 | machine_is_s3c2413() will work when MACH_SMDK2413 is |
48 | selected | 48 | selected |
49 | 49 | ||
50 | config MACH_SMDK2412 | ||
51 | bool "SMDK2412" | ||
52 | select MACH_SMDK2413 | ||
53 | help | ||
54 | Say Y here if you are using an SMDK2412 | ||
55 | |||
56 | Note, this shares support with SMDK2413, so will automatically | ||
57 | select MACH_SMDK2413. | ||
58 | |||
50 | config MACH_VSTMS | 59 | config MACH_VSTMS |
51 | bool "VMSTMS" | 60 | bool "VMSTMS" |
52 | select CPU_S3C2412 | 61 | select CPU_S3C2412 |
diff --git a/arch/arm/mach-s3c2412/irq.c b/arch/arm/mach-s3c2412/irq.c index e89dbdcb1b7b..f0d66828f965 100644 --- a/arch/arm/mach-s3c2412/irq.c +++ b/arch/arm/mach-s3c2412/irq.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | #include <linux/ioport.h> | 25 | #include <linux/ioport.h> |
26 | #include <linux/ptrace.h> | ||
27 | #include <linux/sysdev.h> | 26 | #include <linux/sysdev.h> |
28 | 27 | ||
29 | #include <asm/hardware.h> | 28 | #include <asm/hardware.h> |
diff --git a/arch/arm/mach-s3c2412/mach-smdk2413.c b/arch/arm/mach-s3c2412/mach-smdk2413.c index b5befce6c8d3..063af09f899d 100644 --- a/arch/arm/mach-s3c2412/mach-smdk2413.c +++ b/arch/arm/mach-s3c2412/mach-smdk2413.c | |||
@@ -110,11 +110,6 @@ static struct platform_device *smdk2413_devices[] __initdata = { | |||
110 | &s3c_device_usbgadget, | 110 | &s3c_device_usbgadget, |
111 | }; | 111 | }; |
112 | 112 | ||
113 | static struct s3c24xx_board smdk2413_board __initdata = { | ||
114 | .devices = smdk2413_devices, | ||
115 | .devices_count = ARRAY_SIZE(smdk2413_devices) | ||
116 | }; | ||
117 | |||
118 | static void __init smdk2413_fixup(struct machine_desc *desc, | 113 | static void __init smdk2413_fixup(struct machine_desc *desc, |
119 | struct tag *tags, char **cmdline, | 114 | struct tag *tags, char **cmdline, |
120 | struct meminfo *mi) | 115 | struct meminfo *mi) |
@@ -132,7 +127,6 @@ static void __init smdk2413_map_io(void) | |||
132 | s3c24xx_init_io(smdk2413_iodesc, ARRAY_SIZE(smdk2413_iodesc)); | 127 | s3c24xx_init_io(smdk2413_iodesc, ARRAY_SIZE(smdk2413_iodesc)); |
133 | s3c24xx_init_clocks(12000000); | 128 | s3c24xx_init_clocks(12000000); |
134 | s3c24xx_init_uarts(smdk2413_uartcfgs, ARRAY_SIZE(smdk2413_uartcfgs)); | 129 | s3c24xx_init_uarts(smdk2413_uartcfgs, ARRAY_SIZE(smdk2413_uartcfgs)); |
135 | s3c24xx_set_board(&smdk2413_board); | ||
136 | } | 130 | } |
137 | 131 | ||
138 | static void __init smdk2413_machine_init(void) | 132 | static void __init smdk2413_machine_init(void) |
@@ -149,6 +143,7 @@ static void __init smdk2413_machine_init(void) | |||
149 | 143 | ||
150 | s3c24xx_udc_set_platdata(&smdk2413_udc_cfg); | 144 | s3c24xx_udc_set_platdata(&smdk2413_udc_cfg); |
151 | 145 | ||
146 | platform_add_devices(smdk2413_devices, ARRAY_SIZE(smdk2413_devices)); | ||
152 | smdk_machine_init(); | 147 | smdk_machine_init(); |
153 | } | 148 | } |
154 | 149 | ||
diff --git a/arch/arm/mach-s3c2412/mach-vstms.c b/arch/arm/mach-s3c2412/mach-vstms.c index 4231b549d797..f2fbd65956ac 100644 --- a/arch/arm/mach-s3c2412/mach-vstms.c +++ b/arch/arm/mach-s3c2412/mach-vstms.c | |||
@@ -129,11 +129,6 @@ static struct platform_device *vstms_devices[] __initdata = { | |||
129 | &s3c_device_nand, | 129 | &s3c_device_nand, |
130 | }; | 130 | }; |
131 | 131 | ||
132 | static struct s3c24xx_board vstms_board __initdata = { | ||
133 | .devices = vstms_devices, | ||
134 | .devices_count = ARRAY_SIZE(vstms_devices) | ||
135 | }; | ||
136 | |||
137 | static void __init vstms_fixup(struct machine_desc *desc, | 132 | static void __init vstms_fixup(struct machine_desc *desc, |
138 | struct tag *tags, char **cmdline, | 133 | struct tag *tags, char **cmdline, |
139 | struct meminfo *mi) | 134 | struct meminfo *mi) |
@@ -153,7 +148,11 @@ static void __init vstms_map_io(void) | |||
153 | s3c24xx_init_io(vstms_iodesc, ARRAY_SIZE(vstms_iodesc)); | 148 | s3c24xx_init_io(vstms_iodesc, ARRAY_SIZE(vstms_iodesc)); |
154 | s3c24xx_init_clocks(12000000); | 149 | s3c24xx_init_clocks(12000000); |
155 | s3c24xx_init_uarts(vstms_uartcfgs, ARRAY_SIZE(vstms_uartcfgs)); | 150 | s3c24xx_init_uarts(vstms_uartcfgs, ARRAY_SIZE(vstms_uartcfgs)); |
156 | s3c24xx_set_board(&vstms_board); | 151 | } |
152 | |||
153 | static void __init vstms_init(void) | ||
154 | { | ||
155 | platform_add_devices(vstms_devices, ARRAY_SIZE(vstms_devices)); | ||
157 | } | 156 | } |
158 | 157 | ||
159 | MACHINE_START(VSTMS, "VSTMS") | 158 | MACHINE_START(VSTMS, "VSTMS") |
@@ -163,6 +162,7 @@ MACHINE_START(VSTMS, "VSTMS") | |||
163 | 162 | ||
164 | .fixup = vstms_fixup, | 163 | .fixup = vstms_fixup, |
165 | .init_irq = s3c24xx_init_irq, | 164 | .init_irq = s3c24xx_init_irq, |
165 | .init_machine = vstms_init, | ||
166 | .map_io = vstms_map_io, | 166 | .map_io = vstms_map_io, |
167 | .timer = &s3c24xx_timer, | 167 | .timer = &s3c24xx_timer, |
168 | MACHINE_END | 168 | MACHINE_END |