diff options
Diffstat (limited to 'arch/arm/mach-s3c24xx/mach-bast.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-bast.c | 54 |
1 files changed, 24 insertions, 30 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-bast.c b/arch/arm/mach-s3c24xx/mach-bast.c index 6a30ce7e4aa7..5c1e3dfb9ab3 100644 --- a/arch/arm/mach-s3c24xx/mach-bast.c +++ b/arch/arm/mach-s3c24xx/mach-bast.c | |||
@@ -24,48 +24,42 @@ | |||
24 | #include <linux/ata_platform.h> | 24 | #include <linux/ata_platform.h> |
25 | #include <linux/i2c.h> | 25 | #include <linux/i2c.h> |
26 | #include <linux/io.h> | 26 | #include <linux/io.h> |
27 | #include <linux/serial_8250.h> | ||
28 | |||
29 | #include <linux/mtd/mtd.h> | ||
30 | #include <linux/mtd/nand.h> | ||
31 | #include <linux/mtd/nand_ecc.h> | ||
32 | #include <linux/mtd/partitions.h> | ||
33 | |||
34 | #include <linux/platform_data/asoc-s3c24xx_simtec.h> | ||
35 | #include <linux/platform_data/hwmon-s3c.h> | ||
36 | #include <linux/platform_data/i2c-s3c2410.h> | ||
37 | #include <linux/platform_data/mtd-nand-s3c2410.h> | ||
27 | 38 | ||
28 | #include <net/ax88796.h> | 39 | #include <net/ax88796.h> |
29 | 40 | ||
41 | #include <asm/irq.h> | ||
30 | #include <asm/mach/arch.h> | 42 | #include <asm/mach/arch.h> |
31 | #include <asm/mach/map.h> | 43 | #include <asm/mach/map.h> |
32 | #include <asm/mach/irq.h> | 44 | #include <asm/mach/irq.h> |
33 | |||
34 | #include <mach/bast-map.h> | ||
35 | #include <mach/bast-irq.h> | ||
36 | #include <mach/bast-cpld.h> | ||
37 | |||
38 | #include <mach/hardware.h> | ||
39 | #include <asm/irq.h> | ||
40 | #include <asm/mach-types.h> | 45 | #include <asm/mach-types.h> |
41 | 46 | ||
42 | //#include <asm/debug-ll.h> | 47 | #include <mach/fb.h> |
43 | #include <plat/regs-serial.h> | 48 | #include <mach/hardware.h> |
44 | #include <mach/regs-gpio.h> | 49 | #include <mach/regs-gpio.h> |
45 | #include <mach/regs-mem.h> | ||
46 | #include <mach/regs-lcd.h> | 50 | #include <mach/regs-lcd.h> |
47 | 51 | #include <mach/regs-mem.h> | |
48 | #include <linux/platform_data/hwmon-s3c.h> | ||
49 | #include <linux/platform_data/mtd-nand-s3c2410.h> | ||
50 | #include <linux/platform_data/i2c-s3c2410.h> | ||
51 | #include <mach/fb.h> | ||
52 | |||
53 | #include <linux/mtd/mtd.h> | ||
54 | #include <linux/mtd/nand.h> | ||
55 | #include <linux/mtd/nand_ecc.h> | ||
56 | #include <linux/mtd/partitions.h> | ||
57 | |||
58 | #include <linux/serial_8250.h> | ||
59 | 52 | ||
60 | #include <plat/clock.h> | 53 | #include <plat/clock.h> |
61 | #include <plat/devs.h> | ||
62 | #include <plat/cpu.h> | 54 | #include <plat/cpu.h> |
63 | #include <plat/cpu-freq.h> | 55 | #include <plat/cpu-freq.h> |
56 | #include <plat/devs.h> | ||
64 | #include <plat/gpio-cfg.h> | 57 | #include <plat/gpio-cfg.h> |
65 | #include <linux/platform_data/asoc-s3c24xx_simtec.h> | 58 | #include <plat/regs-serial.h> |
66 | 59 | ||
67 | #include "simtec.h" | 60 | #include "bast.h" |
68 | #include "common.h" | 61 | #include "common.h" |
62 | #include "simtec.h" | ||
69 | 63 | ||
70 | #define COPYRIGHT ", Copyright 2004-2008 Simtec Electronics" | 64 | #define COPYRIGHT ", Copyright 2004-2008 Simtec Electronics" |
71 | 65 | ||
@@ -312,7 +306,7 @@ static struct s3c2410_platform_nand __initdata bast_nand_info = { | |||
312 | static struct resource bast_dm9k_resource[] = { | 306 | static struct resource bast_dm9k_resource[] = { |
313 | [0] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_DM9000, 4), | 307 | [0] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_DM9000, 4), |
314 | [1] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_DM9000 + 0x40, 0x40), | 308 | [1] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_DM9000 + 0x40, 0x40), |
315 | [2] = DEFINE_RES_NAMED(IRQ_DM9000 , 1, NULL, IORESOURCE_IRQ \ | 309 | [2] = DEFINE_RES_NAMED(BAST_IRQ_DM9000 , 1, NULL, IORESOURCE_IRQ \ |
316 | | IORESOURCE_IRQ_HIGHLEVEL), | 310 | | IORESOURCE_IRQ_HIGHLEVEL), |
317 | }; | 311 | }; |
318 | 312 | ||
@@ -343,7 +337,7 @@ static struct platform_device bast_device_dm9k = { | |||
343 | static struct plat_serial8250_port bast_sio_data[] = { | 337 | static struct plat_serial8250_port bast_sio_data[] = { |
344 | [0] = { | 338 | [0] = { |
345 | .mapbase = SERIAL_BASE + 0x2f8, | 339 | .mapbase = SERIAL_BASE + 0x2f8, |
346 | .irq = IRQ_PCSERIAL1, | 340 | .irq = BAST_IRQ_PCSERIAL1, |
347 | .flags = SERIAL_FLAGS, | 341 | .flags = SERIAL_FLAGS, |
348 | .iotype = UPIO_MEM, | 342 | .iotype = UPIO_MEM, |
349 | .regshift = 0, | 343 | .regshift = 0, |
@@ -351,7 +345,7 @@ static struct plat_serial8250_port bast_sio_data[] = { | |||
351 | }, | 345 | }, |
352 | [1] = { | 346 | [1] = { |
353 | .mapbase = SERIAL_BASE + 0x3f8, | 347 | .mapbase = SERIAL_BASE + 0x3f8, |
354 | .irq = IRQ_PCSERIAL2, | 348 | .irq = BAST_IRQ_PCSERIAL2, |
355 | .flags = SERIAL_FLAGS, | 349 | .flags = SERIAL_FLAGS, |
356 | .iotype = UPIO_MEM, | 350 | .iotype = UPIO_MEM, |
357 | .regshift = 0, | 351 | .regshift = 0, |
@@ -390,7 +384,7 @@ static struct ax_plat_data bast_asix_platdata = { | |||
390 | static struct resource bast_asix_resource[] = { | 384 | static struct resource bast_asix_resource[] = { |
391 | [0] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_ASIXNET, 0x18 * 0x20), | 385 | [0] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_ASIXNET, 0x18 * 0x20), |
392 | [1] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_ASIXNET + (0x1f * 0x20), 1), | 386 | [1] = DEFINE_RES_MEM(S3C2410_CS5 + BAST_PA_ASIXNET + (0x1f * 0x20), 1), |
393 | [2] = DEFINE_RES_IRQ(IRQ_ASIX), | 387 | [2] = DEFINE_RES_IRQ(BAST_IRQ_ASIX), |
394 | }; | 388 | }; |
395 | 389 | ||
396 | static struct platform_device bast_device_asix = { | 390 | static struct platform_device bast_device_asix = { |
@@ -612,6 +606,6 @@ MACHINE_START(BAST, "Simtec-BAST") | |||
612 | .map_io = bast_map_io, | 606 | .map_io = bast_map_io, |
613 | .init_irq = s3c24xx_init_irq, | 607 | .init_irq = s3c24xx_init_irq, |
614 | .init_machine = bast_init, | 608 | .init_machine = bast_init, |
615 | .timer = &s3c24xx_timer, | 609 | .init_time = s3c24xx_timer_init, |
616 | .restart = s3c2410_restart, | 610 | .restart = s3c2410_restart, |
617 | MACHINE_END | 611 | MACHINE_END |