aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c24xx/devs.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2009-08-14 10:23:34 -0400
committerBen Dooks <ben-linux@fluff.org>2009-08-14 10:23:34 -0400
commit0fbdd270078a3e3ce537a2fb6ffc8a9b2427500c (patch)
treeb75f47e26372ffa2374b744a6991144032eea6ef /arch/arm/plat-s3c24xx/devs.c
parent69e372896791c2e43949b32d4cbe8a714961d3d7 (diff)
parenta2c195fdde20772a90ee98ce3523dcfbda49eee6 (diff)
Merge branch 'next-s3c24xx' into next-s3c
Diffstat (limited to 'arch/arm/plat-s3c24xx/devs.c')
-rw-r--r--arch/arm/plat-s3c24xx/devs.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c
index 3489019b5374..656b375db46f 100644
--- a/arch/arm/plat-s3c24xx/devs.c
+++ b/arch/arm/plat-s3c24xx/devs.c
@@ -26,6 +26,8 @@
26#include <asm/mach/irq.h> 26#include <asm/mach/irq.h>
27#include <mach/fb.h> 27#include <mach/fb.h>
28#include <mach/hardware.h> 28#include <mach/hardware.h>
29#include <mach/dma.h>
30#include <mach/irqs.h>
29#include <asm/irq.h> 31#include <asm/irq.h>
30 32
31#include <plat/regs-serial.h> 33#include <plat/regs-serial.h>
@@ -473,4 +475,52 @@ struct platform_device s3c_device_camif = {
473 475
474EXPORT_SYMBOL(s3c_device_camif); 476EXPORT_SYMBOL(s3c_device_camif);
475 477
478/* AC97 */
479
480static struct resource s3c_ac97_resource[] = {
481 [0] = {
482 .start = S3C2440_PA_AC97,
483 .end = S3C2440_PA_AC97 + S3C2440_SZ_AC97 -1,
484 .flags = IORESOURCE_MEM,
485 },
486 [1] = {
487 .start = IRQ_S3C244x_AC97,
488 .end = IRQ_S3C244x_AC97,
489 .flags = IORESOURCE_IRQ,
490 },
491 [2] = {
492 .name = "PCM out",
493 .start = DMACH_PCM_OUT,
494 .end = DMACH_PCM_OUT,
495 .flags = IORESOURCE_DMA,
496 },
497 [3] = {
498 .name = "PCM in",
499 .start = DMACH_PCM_IN,
500 .end = DMACH_PCM_IN,
501 .flags = IORESOURCE_DMA,
502 },
503 [4] = {
504 .name = "Mic in",
505 .start = DMACH_MIC_IN,
506 .end = DMACH_MIC_IN,
507 .flags = IORESOURCE_DMA,
508 },
509};
510
511static u64 s3c_device_ac97_dmamask = 0xffffffffUL;
512
513struct platform_device s3c_device_ac97 = {
514 .name = "s3c-ac97",
515 .id = -1,
516 .num_resources = ARRAY_SIZE(s3c_ac97_resource),
517 .resource = s3c_ac97_resource,
518 .dev = {
519 .dma_mask = &s3c_device_ac97_dmamask,
520 .coherent_dma_mask = 0xffffffffUL
521 }
522};
523
524EXPORT_SYMBOL(s3c_device_ac97);
525
476#endif // CONFIG_CPU_S32440 526#endif // CONFIG_CPU_S32440