diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2012-05-12 03:24:59 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-05-12 03:24:59 -0400 |
commit | 99dbdd98f271899e023d52b3f4c2bf67cdd7eb56 (patch) | |
tree | c49bb3805022a6c7ec86d259b0dc4d609b102d85 /arch/arm/mach-s3c24xx | |
parent | 2473f713ec78e477b9c97d122f9304ad9bc7d98a (diff) |
ARM: S3C24XX: 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: 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.c | 56 |
1 files changed, 16 insertions, 40 deletions
diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/common.c index d42423aa231c..56cdd34cce41 100644 --- a/arch/arm/mach-s3c24xx/common.c +++ b/arch/arm/mach-s3c24xx/common.c | |||
@@ -241,55 +241,31 @@ void __init s3c24xx_init_io(struct map_desc *mach_desc, int size) | |||
241 | /* Serial port registrations */ | 241 | /* Serial port registrations */ |
242 | 242 | ||
243 | static struct resource s3c2410_uart0_resource[] = { | 243 | static struct resource s3c2410_uart0_resource[] = { |
244 | [0] = { | 244 | [0] = DEFINE_RES_MEM(S3C2410_PA_UART0, SZ_16K), |
245 | .start = S3C2410_PA_UART0, | 245 | [1] = DEFINE_RES_NAMED(IRQ_S3CUART_RX0, \ |
246 | .end = S3C2410_PA_UART0 + 0x3fff, | 246 | IRQ_S3CUART_ERR0 - IRQ_S3CUART_RX0 + 1, \ |
247 | .flags = IORESOURCE_MEM, | 247 | NULL, IORESOURCE_IRQ) |
248 | }, | ||
249 | [1] = { | ||
250 | .start = IRQ_S3CUART_RX0, | ||
251 | .end = IRQ_S3CUART_ERR0, | ||
252 | .flags = IORESOURCE_IRQ, | ||
253 | } | ||
254 | }; | 248 | }; |
255 | 249 | ||
256 | static struct resource s3c2410_uart1_resource[] = { | 250 | static struct resource s3c2410_uart1_resource[] = { |
257 | [0] = { | 251 | [0] = DEFINE_RES_MEM(S3C2410_PA_UART1, SZ_16K), |
258 | .start = S3C2410_PA_UART1, | 252 | [1] = DEFINE_RES_NAMED(IRQ_S3CUART_RX1, \ |
259 | .end = S3C2410_PA_UART1 + 0x3fff, | 253 | IRQ_S3CUART_ERR1 - IRQ_S3CUART_RX1 + 1, \ |
260 | .flags = IORESOURCE_MEM, | 254 | NULL, IORESOURCE_IRQ) |
261 | }, | ||
262 | [1] = { | ||
263 | .start = IRQ_S3CUART_RX1, | ||
264 | .end = IRQ_S3CUART_ERR1, | ||
265 | .flags = IORESOURCE_IRQ, | ||
266 | } | ||
267 | }; | 255 | }; |
268 | 256 | ||
269 | static struct resource s3c2410_uart2_resource[] = { | 257 | static struct resource s3c2410_uart2_resource[] = { |
270 | [0] = { | 258 | [0] = DEFINE_RES_MEM(S3C2410_PA_UART2, SZ_16K), |
271 | .start = S3C2410_PA_UART2, | 259 | [1] = DEFINE_RES_NAMED(IRQ_S3CUART_RX2, \ |
272 | .end = S3C2410_PA_UART2 + 0x3fff, | 260 | IRQ_S3CUART_ERR2 - IRQ_S3CUART_RX2 + 1, \ |
273 | .flags = IORESOURCE_MEM, | 261 | NULL, IORESOURCE_IRQ) |
274 | }, | ||
275 | [1] = { | ||
276 | .start = IRQ_S3CUART_RX2, | ||
277 | .end = IRQ_S3CUART_ERR2, | ||
278 | .flags = IORESOURCE_IRQ, | ||
279 | } | ||
280 | }; | 262 | }; |
281 | 263 | ||
282 | static struct resource s3c2410_uart3_resource[] = { | 264 | static struct resource s3c2410_uart3_resource[] = { |
283 | [0] = { | 265 | [0] = DEFINE_RES_MEM(S3C2443_PA_UART3, SZ_16K), |
284 | .start = S3C2443_PA_UART3, | 266 | [1] = DEFINE_RES_NAMED(IRQ_S3CUART_RX3, \ |
285 | .end = S3C2443_PA_UART3 + 0x3fff, | 267 | IRQ_S3CUART_ERR3 - IRQ_S3CUART_RX3 + 1, \ |
286 | .flags = IORESOURCE_MEM, | 268 | NULL, IORESOURCE_IRQ) |
287 | }, | ||
288 | [1] = { | ||
289 | .start = IRQ_S3CUART_RX3, | ||
290 | .end = IRQ_S3CUART_ERR3, | ||
291 | .flags = IORESOURCE_IRQ, | ||
292 | }, | ||
293 | }; | 269 | }; |
294 | 270 | ||
295 | struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = { | 271 | struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = { |