aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-10-25 04:00:30 -0400
committerTakashi Iwai <tiwai@suse.de>2010-10-25 04:00:30 -0400
commitaa5c14d5c0d3e4c587db4a1b220b9c86415c538f (patch)
tree0114637e8be2b38176e7e91e6cea3501b22cb66a /arch/arm/mach-pxa
parent79fc84c7e0d2fe89c4e82f3a26fd8b0d13c31703 (diff)
parentb11bdb5254ff17cb63e4ae5088b73fdcd2cc2602 (diff)
Merge branch 'topic/asoc' into for-linus
Conflicts: arch/powerpc/platforms/85xx/p1022_ds.c
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/devices.c25
-rw-r--r--arch/arm/mach-pxa/devices.h6
-rw-r--r--arch/arm/mach-pxa/pxa27x.c4
-rw-r--r--arch/arm/mach-pxa/pxa3xx.c5
-rw-r--r--arch/arm/mach-pxa/zylonite.c11
5 files changed, 51 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c
index 65447dc736c2..6d845446ce26 100644
--- a/arch/arm/mach-pxa/devices.c
+++ b/arch/arm/mach-pxa/devices.c
@@ -354,6 +354,31 @@ struct platform_device pxa_device_i2s = {
354 .num_resources = ARRAY_SIZE(pxai2s_resources), 354 .num_resources = ARRAY_SIZE(pxai2s_resources),
355}; 355};
356 356
357struct platform_device pxa_device_asoc_ssp1 = {
358 .name = "pxa-ssp-dai",
359 .id = 0,
360};
361
362struct platform_device pxa_device_asoc_ssp2= {
363 .name = "pxa-ssp-dai",
364 .id = 1,
365};
366
367struct platform_device pxa_device_asoc_ssp3 = {
368 .name = "pxa-ssp-dai",
369 .id = 2,
370};
371
372struct platform_device pxa_device_asoc_ssp4 = {
373 .name = "pxa-ssp-dai",
374 .id = 3,
375};
376
377struct platform_device pxa_device_asoc_platform = {
378 .name = "pxa-pcm-audio",
379 .id = -1,
380};
381
357static u64 pxaficp_dmamask = ~(u32)0; 382static u64 pxaficp_dmamask = ~(u32)0;
358 383
359struct platform_device pxa_device_ficp = { 384struct platform_device pxa_device_ficp = {
diff --git a/arch/arm/mach-pxa/devices.h b/arch/arm/mach-pxa/devices.h
index 50353ea49ba4..491a27a92735 100644
--- a/arch/arm/mach-pxa/devices.h
+++ b/arch/arm/mach-pxa/devices.h
@@ -38,4 +38,10 @@ extern struct platform_device pxa3xx_device_i2c_power;
38 38
39extern struct platform_device pxa3xx_device_gcu; 39extern struct platform_device pxa3xx_device_gcu;
40 40
41extern struct platform_device pxa_device_asoc_platform;
42extern struct platform_device pxa_device_asoc_ssp1;
43extern struct platform_device pxa_device_asoc_ssp2;
44extern struct platform_device pxa_device_asoc_ssp3;
45extern struct platform_device pxa_device_asoc_ssp4;
46
41void __init pxa_register_device(struct platform_device *dev, void *data); 47void __init pxa_register_device(struct platform_device *dev, void *data);
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c
index 12e5b9f01e6f..d1fbf29d561c 100644
--- a/arch/arm/mach-pxa/pxa27x.c
+++ b/arch/arm/mach-pxa/pxa27x.c
@@ -385,6 +385,10 @@ static struct platform_device *devices[] __initdata = {
385 &pxa27x_device_udc, 385 &pxa27x_device_udc,
386 &pxa_device_pmu, 386 &pxa_device_pmu,
387 &pxa_device_i2s, 387 &pxa_device_i2s,
388 &pxa_device_asoc_ssp1,
389 &pxa_device_asoc_ssp2,
390 &pxa_device_asoc_ssp3,
391 &pxa_device_asoc_platform,
388 &sa1100_device_rtc, 392 &sa1100_device_rtc,
389 &pxa_device_rtc, 393 &pxa_device_rtc,
390 &pxa27x_device_ssp1, 394 &pxa27x_device_ssp1,
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index fa0014847c71..90974e6fae6a 100644
--- a/arch/arm/mach-pxa/pxa3xx.c
+++ b/arch/arm/mach-pxa/pxa3xx.c
@@ -610,6 +610,11 @@ static struct platform_device *devices[] __initdata = {
610 &pxa27x_device_udc, 610 &pxa27x_device_udc,
611 &pxa_device_pmu, 611 &pxa_device_pmu,
612 &pxa_device_i2s, 612 &pxa_device_i2s,
613 &pxa_device_asoc_ssp1,
614 &pxa_device_asoc_ssp2,
615 &pxa_device_asoc_ssp3,
616 &pxa_device_asoc_ssp4,
617 &pxa_device_asoc_platform,
613 &sa1100_device_rtc, 618 &sa1100_device_rtc,
614 &pxa_device_rtc, 619 &pxa_device_rtc,
615 &pxa27x_device_ssp1, 620 &pxa27x_device_ssp1,
diff --git a/arch/arm/mach-pxa/zylonite.c b/arch/arm/mach-pxa/zylonite.c
index c479cbecf784..5ba9d99a1bf6 100644
--- a/arch/arm/mach-pxa/zylonite.c
+++ b/arch/arm/mach-pxa/zylonite.c
@@ -45,6 +45,16 @@ int wm9713_irq;
45int lcd_id; 45int lcd_id;
46int lcd_orientation; 46int lcd_orientation;
47 47
48struct platform_device pxa_device_wm9713_audio = {
49 .name = "wm9713-codec",
50 .id = -1,
51};
52
53static void __init zylonite_init_wm9713_audio(void)
54{
55 platform_device_register(&pxa_device_wm9713_audio);
56}
57
48static struct resource smc91x_resources[] = { 58static struct resource smc91x_resources[] = {
49 [0] = { 59 [0] = {
50 .start = ZYLONITE_ETH_PHYS + 0x300, 60 .start = ZYLONITE_ETH_PHYS + 0x300,
@@ -408,6 +418,7 @@ static void __init zylonite_init(void)
408 zylonite_init_nand(); 418 zylonite_init_nand();
409 zylonite_init_leds(); 419 zylonite_init_leds();
410 zylonite_init_ohci(); 420 zylonite_init_ohci();
421 zylonite_init_wm9713_audio();
411} 422}
412 423
413MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)") 424MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)")