diff options
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r-- | arch/arm/plat-s3c24xx/common-smdk.c | 5 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/devs.c | 35 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/dma.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/pm-simtec.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/pm.c | 2 |
5 files changed, 41 insertions, 4 deletions
diff --git a/arch/arm/plat-s3c24xx/common-smdk.c b/arch/arm/plat-s3c24xx/common-smdk.c index 908efa7d745..7ed19b23ce5 100644 --- a/arch/arm/plat-s3c24xx/common-smdk.c +++ b/arch/arm/plat-s3c24xx/common-smdk.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/list.h> | 18 | #include <linux/list.h> |
19 | #include <linux/timer.h> | 19 | #include <linux/timer.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/sysdev.h> | ||
21 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
22 | 23 | ||
23 | #include <linux/mtd/mtd.h> | 24 | #include <linux/mtd/mtd.h> |
@@ -29,6 +30,7 @@ | |||
29 | #include <asm/mach/map.h> | 30 | #include <asm/mach/map.h> |
30 | #include <asm/mach/irq.h> | 31 | #include <asm/mach/irq.h> |
31 | 32 | ||
33 | #include <asm/mach-types.h> | ||
32 | #include <asm/hardware.h> | 34 | #include <asm/hardware.h> |
33 | #include <asm/io.h> | 35 | #include <asm/io.h> |
34 | #include <asm/irq.h> | 36 | #include <asm/irq.h> |
@@ -192,6 +194,9 @@ void __init smdk_machine_init(void) | |||
192 | s3c2410_gpio_setpin(S3C2410_GPF6, 1); | 194 | s3c2410_gpio_setpin(S3C2410_GPF6, 1); |
193 | s3c2410_gpio_setpin(S3C2410_GPF7, 1); | 195 | s3c2410_gpio_setpin(S3C2410_GPF7, 1); |
194 | 196 | ||
197 | if (machine_is_smdk2443()) | ||
198 | smdk_nand_info.twrph0 = 50; | ||
199 | |||
195 | s3c_device_nand.dev.platform_data = &smdk_nand_info; | 200 | s3c_device_nand.dev.platform_data = &smdk_nand_info; |
196 | 201 | ||
197 | platform_add_devices(smdk_devs, ARRAY_SIZE(smdk_devs)); | 202 | platform_add_devices(smdk_devs, ARRAY_SIZE(smdk_devs)); |
diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c index 0fe53b39cb2..5875da0ae0e 100644 --- a/arch/arm/plat-s3c24xx/devs.c +++ b/arch/arm/plat-s3c24xx/devs.c | |||
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #include <asm/plat-s3c24xx/devs.h> | 34 | #include <asm/plat-s3c24xx/devs.h> |
35 | #include <asm/plat-s3c24xx/cpu.h> | 35 | #include <asm/plat-s3c24xx/cpu.h> |
36 | #include <asm/arch/regs-spi.h> | ||
36 | 37 | ||
37 | /* Serial port registrations */ | 38 | /* Serial port registrations */ |
38 | 39 | ||
@@ -402,6 +403,36 @@ struct platform_device s3c_device_sdi = { | |||
402 | 403 | ||
403 | EXPORT_SYMBOL(s3c_device_sdi); | 404 | EXPORT_SYMBOL(s3c_device_sdi); |
404 | 405 | ||
406 | /* High-speed MMC/SD */ | ||
407 | |||
408 | static struct resource s3c_hsmmc_resource[] = { | ||
409 | [0] = { | ||
410 | .start = S3C2443_PA_HSMMC, | ||
411 | .end = S3C2443_PA_HSMMC + S3C2443_SZ_HSMMC - 1, | ||
412 | .flags = IORESOURCE_MEM, | ||
413 | }, | ||
414 | [1] = { | ||
415 | .start = IRQ_S3C2443_HSMMC, | ||
416 | .end = IRQ_S3C2443_HSMMC, | ||
417 | .flags = IORESOURCE_IRQ, | ||
418 | } | ||
419 | }; | ||
420 | |||
421 | static u64 s3c_device_hsmmc_dmamask = 0xffffffffUL; | ||
422 | |||
423 | struct platform_device s3c_device_hsmmc = { | ||
424 | .name = "s3c-sdhci", | ||
425 | .id = -1, | ||
426 | .num_resources = ARRAY_SIZE(s3c_hsmmc_resource), | ||
427 | .resource = s3c_hsmmc_resource, | ||
428 | .dev = { | ||
429 | .dma_mask = &s3c_device_hsmmc_dmamask, | ||
430 | .coherent_dma_mask = 0xffffffffUL | ||
431 | } | ||
432 | }; | ||
433 | |||
434 | |||
435 | |||
405 | /* SPI (0) */ | 436 | /* SPI (0) */ |
406 | 437 | ||
407 | static struct resource s3c_spi0_resource[] = { | 438 | static struct resource s3c_spi0_resource[] = { |
@@ -437,8 +468,8 @@ EXPORT_SYMBOL(s3c_device_spi0); | |||
437 | 468 | ||
438 | static struct resource s3c_spi1_resource[] = { | 469 | static struct resource s3c_spi1_resource[] = { |
439 | [0] = { | 470 | [0] = { |
440 | .start = S3C24XX_PA_SPI + 0x20, | 471 | .start = S3C24XX_PA_SPI + S3C2410_SPI1, |
441 | .end = S3C24XX_PA_SPI + 0x20 + 0x1f, | 472 | .end = S3C24XX_PA_SPI + S3C2410_SPI1 + 0x1f, |
442 | .flags = IORESOURCE_MEM, | 473 | .flags = IORESOURCE_MEM, |
443 | }, | 474 | }, |
444 | [1] = { | 475 | [1] = { |
diff --git a/arch/arm/plat-s3c24xx/dma.c b/arch/arm/plat-s3c24xx/dma.c index 6f03c937097..08d80f2f51f 100644 --- a/arch/arm/plat-s3c24xx/dma.c +++ b/arch/arm/plat-s3c24xx/dma.c | |||
@@ -1153,7 +1153,7 @@ EXPORT_SYMBOL(s3c2410_dma_set_buffdone_fn); | |||
1153 | * | 1153 | * |
1154 | * hwcfg: the value for xxxSTCn register, | 1154 | * hwcfg: the value for xxxSTCn register, |
1155 | * bit 0: 0=increment pointer, 1=leave pointer | 1155 | * bit 0: 0=increment pointer, 1=leave pointer |
1156 | * bit 1: 0=soucre is AHB, 1=soucre is APB | 1156 | * bit 1: 0=source is AHB, 1=source is APB |
1157 | * | 1157 | * |
1158 | * devaddr: physical address of the source | 1158 | * devaddr: physical address of the source |
1159 | */ | 1159 | */ |
diff --git a/arch/arm/plat-s3c24xx/pm-simtec.c b/arch/arm/plat-s3c24xx/pm-simtec.c index bd965f2feec..cb0b3a4ccf1 100644 --- a/arch/arm/plat-s3c24xx/pm-simtec.c +++ b/arch/arm/plat-s3c24xx/pm-simtec.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/list.h> | 18 | #include <linux/list.h> |
19 | #include <linux/timer.h> | 19 | #include <linux/timer.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/sysdev.h> | ||
21 | #include <linux/device.h> | 22 | #include <linux/device.h> |
22 | 23 | ||
23 | #include <asm/mach/arch.h> | 24 | #include <asm/mach/arch.h> |
diff --git a/arch/arm/plat-s3c24xx/pm.c b/arch/arm/plat-s3c24xx/pm.c index c6b03f8ab26..5692eccdf4d 100644 --- a/arch/arm/plat-s3c24xx/pm.c +++ b/arch/arm/plat-s3c24xx/pm.c | |||
@@ -555,7 +555,7 @@ static int s3c2410_pm_enter(suspend_state_t state) | |||
555 | __raw_writel(__raw_readl(S3C2410_INTPND), S3C2410_INTPND); | 555 | __raw_writel(__raw_readl(S3C2410_INTPND), S3C2410_INTPND); |
556 | __raw_writel(__raw_readl(S3C2410_SRCPND), S3C2410_SRCPND); | 556 | __raw_writel(__raw_readl(S3C2410_SRCPND), S3C2410_SRCPND); |
557 | 557 | ||
558 | /* call cpu specific preperation */ | 558 | /* call cpu specific preparation */ |
559 | 559 | ||
560 | pm_cpu_prep(); | 560 | pm_cpu_prep(); |
561 | 561 | ||