1 /* linux/arch/arm/plat-s3c64xx/dev-uart.c
3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics
5 * Ben Dooks <ben@simtec.co.uk>
6 * http://armlinux.simtec.co.uk/
8 * Base S3C64XX UART resource and device definitions
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
16 #include <linux/kernel.h>
17 #include <linux/types.h>
18 #include <linux/interrupt.h>
19 #include <linux/list.h>
20 #include <linux/platform_device.h>
22 #include <asm/mach/arch.h>
23 #include <asm/mach/irq.h>
24 #include <mach/hardware.h>
27 #include <plat/devs.h>
29 /* Serial port registrations */
31 /* 64xx uarts are closer together */
33 static struct resource s3c64xx_uart0_resource[] = {
35 .start = S3C_PA_UART0,
36 .end = S3C_PA_UART0 + 0x100,
37 .flags = IORESOURCE_MEM,
42 .flags = IORESOURCE_IRQ,
46 static struct resource s3c64xx_uart1_resource[] = {
48 .start = S3C_PA_UART1,
49 .end = S3C_PA_UART1 + 0x100,
50 .flags = IORESOURCE_MEM,
55 .flags = IORESOURCE_IRQ,
59 static struct resource s3c6xx_uart2_resource[] = {
61 .start = S3C_PA_UART2,
62 .end = S3C_PA_UART2 + 0x100,
63 .flags = IORESOURCE_MEM,
68 .flags = IORESOURCE_IRQ,
72 static struct resource s3c64xx_uart3_resource[] = {
74 .start = S3C_PA_UART3,
75 .end = S3C_PA_UART3 + 0x100,
76 .flags = IORESOURCE_MEM,
81 .flags = IORESOURCE_IRQ,
86 struct s3c24xx_uart_resources s3c64xx_uart_resources[] __initdata = {
88 .resources = s3c64xx_uart0_resource,
89 .nr_resources = ARRAY_SIZE(s3c64xx_uart0_resource),
92 .resources = s3c64xx_uart1_resource,
93 .nr_resources = ARRAY_SIZE(s3c64xx_uart1_resource),
96 .resources = s3c6xx_uart2_resource,
97 .nr_resources = ARRAY_SIZE(s3c6xx_uart2_resource),
100 .resources = s3c64xx_uart3_resource,
101 .nr_resources = ARRAY_SIZE(s3c64xx_uart3_resource),