aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/dev-uart.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-05-12 03:12:26 -0400
committerKukjin Kim <kgene.kim@samsung.com>2012-05-12 03:12:26 -0400
commit99c7165c2f60a89d7281ec3c8684e8e97365d5ff (patch)
tree9013a11a41fa2f64da733478a5233ea5041786ed /arch/arm/mach-s3c64xx/dev-uart.c
parentc6d884c206f132cf54fbceb2e907472c21074fc5 (diff)
ARM: S3C64XX: Use common macro to define resources on dev-uart.c
Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx/dev-uart.c')
-rw-r--r--arch/arm/mach-s3c64xx/dev-uart.c48
1 files changed, 8 insertions, 40 deletions
diff --git a/arch/arm/mach-s3c64xx/dev-uart.c b/arch/arm/mach-s3c64xx/dev-uart.c
index c681b99eda08..46e18d77ea93 100644
--- a/arch/arm/mach-s3c64xx/dev-uart.c
+++ b/arch/arm/mach-s3c64xx/dev-uart.c
@@ -31,55 +31,23 @@
31/* 64xx uarts are closer together */ 31/* 64xx uarts are closer together */
32 32
33static struct resource s3c64xx_uart0_resource[] = { 33static struct resource s3c64xx_uart0_resource[] = {
34 [0] = { 34 [0] = DEFINE_RES_MEM(S3C_PA_UART0, SZ_256),
35 .start = S3C_PA_UART0, 35 [1] = DEFINE_RES_IRQ(IRQ_UART0),
36 .end = S3C_PA_UART0 + 0x100,
37 .flags = IORESOURCE_MEM,
38 },
39 [1] = {
40 .start = IRQ_UART0,
41 .end = IRQ_UART0,
42 .flags = IORESOURCE_IRQ,
43 },
44}; 36};
45 37
46static struct resource s3c64xx_uart1_resource[] = { 38static struct resource s3c64xx_uart1_resource[] = {
47 [0] = { 39 [0] = DEFINE_RES_MEM(S3C_PA_UART1, SZ_256),
48 .start = S3C_PA_UART1, 40 [1] = DEFINE_RES_IRQ(IRQ_UART1),
49 .end = S3C_PA_UART1 + 0x100,
50 .flags = IORESOURCE_MEM,
51 },
52 [1] = {
53 .start = IRQ_UART1,
54 .end = IRQ_UART1,
55 .flags = IORESOURCE_IRQ,
56 },
57}; 41};
58 42
59static struct resource s3c6xx_uart2_resource[] = { 43static struct resource s3c6xx_uart2_resource[] = {
60 [0] = { 44 [0] = DEFINE_RES_MEM(S3C_PA_UART2, SZ_256),
61 .start = S3C_PA_UART2, 45 [1] = DEFINE_RES_IRQ(IRQ_UART2),
62 .end = S3C_PA_UART2 + 0x100,
63 .flags = IORESOURCE_MEM,
64 },
65 [1] = {
66 .start = IRQ_UART2,
67 .end = IRQ_UART2,
68 .flags = IORESOURCE_IRQ,
69 },
70}; 46};
71 47
72static struct resource s3c64xx_uart3_resource[] = { 48static struct resource s3c64xx_uart3_resource[] = {
73 [0] = { 49 [0] = DEFINE_RES_MEM(S3C_PA_UART3, SZ_256),
74 .start = S3C_PA_UART3, 50 [1] = DEFINE_RES_IRQ(IRQ_UART3),
75 .end = S3C_PA_UART3 + 0x100,
76 .flags = IORESOURCE_MEM,
77 },
78 [1] = {
79 .start = IRQ_UART3,
80 .end = IRQ_UART3,
81 .flags = IORESOURCE_IRQ,
82 },
83}; 51};
84 52
85 53