diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 15:06:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 15:06:33 -0400 |
commit | ec96e2fe954c23a54bfdf2673437a39e193a1822 (patch) | |
tree | e4041c68ef20a3337c56aefc8db785156307edd1 /arch/arm/mach-w90x900/dev.c | |
parent | 8e9815a0f8882aaa68645b001bb7538db8886802 (diff) | |
parent | f949c0edd84101bfd30b3e7389c1a12b067e561d (diff) |
Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (103 commits)
ARM: 6141/1: Add audio support part in arch/arm/mach-w90x900
ARM: 5939/1: ARM: Add option CMDLINE_FORCE to force usage of the in-kernel cmdline
ARM: 6140/1: silence a bogus sparse warning in unwind.c
ARM: mach-at91: duplicated include
ARM: arch/arm/nwfpe/fpsr.h: Checkpatch cleanup
ARM: arch/arm/mach-shark/pci.c: Checkpatch cleanup
ARM: arch/arm/nwfpe/ChangeLog: Checkpatch cleanup
ARM: arch/arm/mach-sa1100/leds.c: Checkpatch cleanup
ARM: arch/arm/mach-h720x/common.h: Checkpatch cleanup
ARM: arch/arm/mach-footbridge/ebsa285-pci.c: Checkpatch cleanup
ARM: arch/arm/mach-clps711x/Makefile.boot: Checkpatch cleanup
ARM: arch/arm/boot/bootp/bootp.lds: Checkpatch cleanup
ARM: SPEAR6xx: remove duplicated #include
ARM: s3c6400_defconfig: Add NAND driver
ARM: s3c6400_defconfig: enable sound as modules
ARM: s3c6400_defconfig: enable power management
ARM: s5pv210_defconfig: Update s5pv210_defconfig to v2.6.34
ARM: s5pc110_defconfig: Update s5pc110_defconfig to v2.6.34
ARM: s5p6442_defconfig: Update s5p6442_defconfig to v2.6.34
ARM: s5p6440_defconfig: Update s5p6440_defconfig to v2.6.34
...
Diffstat (limited to 'arch/arm/mach-w90x900/dev.c')
-rw-r--r-- | arch/arm/mach-w90x900/dev.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/dev.c b/arch/arm/mach-w90x900/dev.c index e2958eb567f9..b2eda4dc1c34 100644 --- a/arch/arm/mach-w90x900/dev.c +++ b/arch/arm/mach-w90x900/dev.c | |||
@@ -423,6 +423,33 @@ void nuc900_fb_set_platdata(struct nuc900fb_mach_info *pd) | |||
423 | } | 423 | } |
424 | #endif | 424 | #endif |
425 | 425 | ||
426 | /* AUDIO controller*/ | ||
427 | static u64 nuc900_device_audio_dmamask = -1; | ||
428 | static struct resource nuc900_ac97_resource[] = { | ||
429 | [0] = { | ||
430 | .start = W90X900_PA_ACTL, | ||
431 | .end = W90X900_PA_ACTL + W90X900_SZ_ACTL - 1, | ||
432 | .flags = IORESOURCE_MEM, | ||
433 | }, | ||
434 | [1] = { | ||
435 | .start = IRQ_ACTL, | ||
436 | .end = IRQ_ACTL, | ||
437 | .flags = IORESOURCE_IRQ, | ||
438 | } | ||
439 | |||
440 | }; | ||
441 | |||
442 | struct platform_device nuc900_device_audio = { | ||
443 | .name = "nuc900-audio", | ||
444 | .id = -1, | ||
445 | .num_resources = ARRAY_SIZE(nuc900_ac97_resource), | ||
446 | .resource = nuc900_ac97_resource, | ||
447 | .dev = { | ||
448 | .dma_mask = &nuc900_device_audio_dmamask, | ||
449 | .coherent_dma_mask = -1, | ||
450 | } | ||
451 | }; | ||
452 | |||
426 | /*Here should be your evb resourse,such as LCD*/ | 453 | /*Here should be your evb resourse,such as LCD*/ |
427 | 454 | ||
428 | static struct platform_device *nuc900_public_dev[] __initdata = { | 455 | static struct platform_device *nuc900_public_dev[] __initdata = { |
@@ -434,6 +461,7 @@ static struct platform_device *nuc900_public_dev[] __initdata = { | |||
434 | &nuc900_device_emc, | 461 | &nuc900_device_emc, |
435 | &nuc900_device_spi, | 462 | &nuc900_device_spi, |
436 | &nuc900_device_wdt, | 463 | &nuc900_device_wdt, |
464 | &nuc900_device_audio, | ||
437 | }; | 465 | }; |
438 | 466 | ||
439 | /* Provide adding specific CPU platform devices API */ | 467 | /* Provide adding specific CPU platform devices API */ |