aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c24xx
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2012-05-12 03:22:17 -0400
committerKukjin Kim <kgene.kim@samsung.com>2012-05-12 03:22:17 -0400
commit618ae08a8804cc545e692f12293e3dd165c4dd77 (patch)
tree31d370a5cefca66d9ff556e9c4817ab62abc4c65 /arch/arm/mach-s3c24xx
parent4a9f52fd8959481e75af2f1e17283813892fdd72 (diff)
ARM: S3C24XX: move plat-s3c24xx/dev-uart.c into common.c
The uart devices are used on all s3c24xx machines, so they can reside in the common code for all machines. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c24xx')
-rw-r--r--arch/arm/mach-s3c24xx/common.c73
1 files changed, 73 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/common.c
index dc9927b13746..5e4ac347f01e 100644
--- a/arch/arm/mach-s3c24xx/common.c
+++ b/arch/arm/mach-s3c24xx/common.c
@@ -234,3 +234,76 @@ void __init s3c24xx_init_io(struct map_desc *mach_desc, int size)
234 234
235 s3c_init_cpu(samsung_cpu_id, cpu_ids, ARRAY_SIZE(cpu_ids)); 235 s3c_init_cpu(samsung_cpu_id, cpu_ids, ARRAY_SIZE(cpu_ids));
236} 236}
237
238/* Serial port registrations */
239
240static struct resource s3c2410_uart0_resource[] = {
241 [0] = {
242 .start = S3C2410_PA_UART0,
243 .end = S3C2410_PA_UART0 + 0x3fff,
244 .flags = IORESOURCE_MEM,
245 },
246 [1] = {
247 .start = IRQ_S3CUART_RX0,
248 .end = IRQ_S3CUART_ERR0,
249 .flags = IORESOURCE_IRQ,
250 }
251};
252
253static struct resource s3c2410_uart1_resource[] = {
254 [0] = {
255 .start = S3C2410_PA_UART1,
256 .end = S3C2410_PA_UART1 + 0x3fff,
257 .flags = IORESOURCE_MEM,
258 },
259 [1] = {
260 .start = IRQ_S3CUART_RX1,
261 .end = IRQ_S3CUART_ERR1,
262 .flags = IORESOURCE_IRQ,
263 }
264};
265
266static struct resource s3c2410_uart2_resource[] = {
267 [0] = {
268 .start = S3C2410_PA_UART2,
269 .end = S3C2410_PA_UART2 + 0x3fff,
270 .flags = IORESOURCE_MEM,
271 },
272 [1] = {
273 .start = IRQ_S3CUART_RX2,
274 .end = IRQ_S3CUART_ERR2,
275 .flags = IORESOURCE_IRQ,
276 }
277};
278
279static struct resource s3c2410_uart3_resource[] = {
280 [0] = {
281 .start = S3C2443_PA_UART3,
282 .end = S3C2443_PA_UART3 + 0x3fff,
283 .flags = IORESOURCE_MEM,
284 },
285 [1] = {
286 .start = IRQ_S3CUART_RX3,
287 .end = IRQ_S3CUART_ERR3,
288 .flags = IORESOURCE_IRQ,
289 },
290};
291
292struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = {
293 [0] = {
294 .resources = s3c2410_uart0_resource,
295 .nr_resources = ARRAY_SIZE(s3c2410_uart0_resource),
296 },
297 [1] = {
298 .resources = s3c2410_uart1_resource,
299 .nr_resources = ARRAY_SIZE(s3c2410_uart1_resource),
300 },
301 [2] = {
302 .resources = s3c2410_uart2_resource,
303 .nr_resources = ARRAY_SIZE(s3c2410_uart2_resource),
304 },
305 [3] = {
306 .resources = s3c2410_uart3_resource,
307 .nr_resources = ARRAY_SIZE(s3c2410_uart3_resource),
308 },
309};