0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #include <linux/kernel.h>
0011 #include <linux/types.h>
0012 #include <linux/interrupt.h>
0013 #include <linux/list.h>
0014 #include <linux/platform_device.h>
0015
0016 #include <asm/mach/arch.h>
0017 #include <asm/mach/irq.h>
0018 #include "map.h"
0019 #include "irqs.h"
0020
0021 #include "devs.h"
0022
0023
0024
0025
0026
0027 static struct resource s3c64xx_uart0_resource[] = {
0028 [0] = DEFINE_RES_MEM(S3C_PA_UART0, SZ_256),
0029 [1] = DEFINE_RES_IRQ(IRQ_UART0),
0030 };
0031
0032 static struct resource s3c64xx_uart1_resource[] = {
0033 [0] = DEFINE_RES_MEM(S3C_PA_UART1, SZ_256),
0034 [1] = DEFINE_RES_IRQ(IRQ_UART1),
0035 };
0036
0037 static struct resource s3c6xx_uart2_resource[] = {
0038 [0] = DEFINE_RES_MEM(S3C_PA_UART2, SZ_256),
0039 [1] = DEFINE_RES_IRQ(IRQ_UART2),
0040 };
0041
0042 static struct resource s3c64xx_uart3_resource[] = {
0043 [0] = DEFINE_RES_MEM(S3C_PA_UART3, SZ_256),
0044 [1] = DEFINE_RES_IRQ(IRQ_UART3),
0045 };
0046
0047
0048 struct s3c24xx_uart_resources s3c64xx_uart_resources[] __initdata = {
0049 [0] = {
0050 .resources = s3c64xx_uart0_resource,
0051 .nr_resources = ARRAY_SIZE(s3c64xx_uart0_resource),
0052 },
0053 [1] = {
0054 .resources = s3c64xx_uart1_resource,
0055 .nr_resources = ARRAY_SIZE(s3c64xx_uart1_resource),
0056 },
0057 [2] = {
0058 .resources = s3c6xx_uart2_resource,
0059 .nr_resources = ARRAY_SIZE(s3c6xx_uart2_resource),
0060 },
0061 [3] = {
0062 .resources = s3c64xx_uart3_resource,
0063 .nr_resources = ARRAY_SIZE(s3c64xx_uart3_resource),
0064 },
0065 };