aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c24xx/mach-bast.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-05-12 03:12:21 -0400
committerKukjin Kim <kgene.kim@samsung.com>2012-05-12 03:12:21 -0400
commit52df44d172d3c91f83f232c828e34f08a4722f71 (patch)
tree234c921a0bebcd414fa9e624a49f47111a9798da /arch/arm/mach-s3c24xx/mach-bast.c
parentd990e3986d355b7694829baa57a71abdaad1ab84 (diff)
ARM: S3C24XX: Use common macro to define resources on mach-bast.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-s3c24xx/mach-bast.c')
-rw-r--r--arch/arm/mach-s3c24xx/mach-bast.c45
1 files changed, 9 insertions, 36 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-bast.c b/arch/arm/mach-s3c24xx/mach-bast.c
index 53219c02eca0..1cf1720682d3 100644
--- a/arch/arm/mach-s3c24xx/mach-bast.c
+++ b/arch/arm/mach-s3c24xx/mach-bast.c
@@ -310,22 +310,10 @@ static struct s3c2410_platform_nand __initdata bast_nand_info = {
310/* DM9000 */ 310/* DM9000 */
311 311
312static struct resource bast_dm9k_resource[] = { 312static struct resource bast_dm9k_resource[] = {
313 [0] = { 313 [0] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_DM9000, 4),
314 .start = S3C2410_CS5 + BAST_PA_DM9000, 314 [1] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_DM9000 + 0x40, 0x40),
315 .end = S3C2410_CS5 + BAST_PA_DM9000 + 3, 315 [2] = DEFINE_RES_NAMED(IRQ_DM9000 , 1, NULL, IORESOURCE_IRQ \
316 .flags = IORESOURCE_MEM, 316 | IORESOURCE_IRQ_HIGHLEVEL),
317 },
318 [1] = {
319 .start = S3C2410_CS5 + BAST_PA_DM9000 + 0x40,
320 .end = S3C2410_CS5 + BAST_PA_DM9000 + 0x40 + 0x3f,
321 .flags = IORESOURCE_MEM,
322 },
323 [2] = {
324 .start = IRQ_DM9000,
325 .end = IRQ_DM9000,
326 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
327 }
328
329}; 317};
330 318
331/* for the moment we limit ourselves to 16bit IO until some 319/* for the moment we limit ourselves to 16bit IO until some
@@ -400,21 +388,9 @@ static struct ax_plat_data bast_asix_platdata = {
400}; 388};
401 389
402static struct resource bast_asix_resource[] = { 390static struct resource bast_asix_resource[] = {
403 [0] = { 391 [0] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_ASIXNET, 0x18 * 0x20),
404 .start = S3C2410_CS5 + BAST_PA_ASIXNET, 392 [1] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_ASIXNET + (0x1f * 0x20), 1),
405 .end = S3C2410_CS5 + BAST_PA_ASIXNET + (0x18 * 0x20) - 1, 393 [2] = DEFINE_RES_IRQ(IRQ_ASIX),
406 .flags = IORESOURCE_MEM,
407 },
408 [1] = {
409 .start = S3C2410_CS5 + BAST_PA_ASIXNET + (0x1f * 0x20),
410 .end = S3C2410_CS5 + BAST_PA_ASIXNET + (0x1f * 0x20),
411 .flags = IORESOURCE_MEM,
412 },
413 [2] = {
414 .start = IRQ_ASIX,
415 .end = IRQ_ASIX,
416 .flags = IORESOURCE_IRQ
417 }
418}; 394};
419 395
420static struct platform_device bast_device_asix = { 396static struct platform_device bast_device_asix = {
@@ -430,11 +406,8 @@ static struct platform_device bast_device_asix = {
430/* Asix AX88796 10/100 ethernet controller parallel port */ 406/* Asix AX88796 10/100 ethernet controller parallel port */
431 407
432static struct resource bast_asixpp_resource[] = { 408static struct resource bast_asixpp_resource[] = {
433 [0] = { 409 [0] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_ASIXNET + (0x18 * 0x20), \
434 .start = S3C2410_CS5 + BAST_PA_ASIXNET + (0x18 * 0x20), 410 0x30 * 0x20),
435 .end = S3C2410_CS5 + BAST_PA_ASIXNET + (0x1b * 0x20) - 1,
436 .flags = IORESOURCE_MEM,
437 }
438}; 411};
439 412
440static struct platform_device bast_device_axpp = { 413static struct platform_device bast_device_axpp = {