diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2011-07-25 07:45:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-27 14:16:47 -0400 |
commit | adbc7a5a61ee9225e0b80d3f5719e05a88db2b4c (patch) | |
tree | 103e02cb906e41aae0cd1610064b74259c229e8b /arch/mips | |
parent | 5b0912be7a8ff1dbfe56358c5f933d65445bb8af (diff) |
ASoC: au1x: update db1200 machine to the new way of things
The use of the "soc-audio" platform device is no longer en vogue,
update the code to the newer, simpler way of doing things.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/alchemy/devboards/db1200/platform.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/alchemy/devboards/db1200/platform.c b/arch/mips/alchemy/devboards/db1200/platform.c index cfb71aed4cb9..dda090bf74e6 100644 --- a/arch/mips/alchemy/devboards/db1200/platform.c +++ b/arch/mips/alchemy/devboards/db1200/platform.c | |||
@@ -422,6 +422,7 @@ static struct resource au1200_psc1_res[] = { | |||
422 | }, | 422 | }, |
423 | }; | 423 | }; |
424 | 424 | ||
425 | /* AC97 or I2S device */ | ||
425 | static struct platform_device db1200_audio_dev = { | 426 | static struct platform_device db1200_audio_dev = { |
426 | /* name assigned later based on switch setting */ | 427 | /* name assigned later based on switch setting */ |
427 | .id = 1, /* PSC ID */ | 428 | .id = 1, /* PSC ID */ |
@@ -429,6 +430,12 @@ static struct platform_device db1200_audio_dev = { | |||
429 | .resource = au1200_psc1_res, | 430 | .resource = au1200_psc1_res, |
430 | }; | 431 | }; |
431 | 432 | ||
433 | /* DB1200 ASoC card device */ | ||
434 | static struct platform_device db1200_sound_dev = { | ||
435 | /* name assigned later based on switch setting */ | ||
436 | .id = 1, /* PSC ID */ | ||
437 | }; | ||
438 | |||
432 | static struct platform_device db1200_stac_dev = { | 439 | static struct platform_device db1200_stac_dev = { |
433 | .name = "ac97-codec", | 440 | .name = "ac97-codec", |
434 | .id = 1, /* on PSC1 */ | 441 | .id = 1, /* on PSC1 */ |
@@ -448,6 +455,7 @@ static struct platform_device *db1200_devs[] __initdata = { | |||
448 | &db1200_audiodma_dev, | 455 | &db1200_audiodma_dev, |
449 | &db1200_audio_dev, | 456 | &db1200_audio_dev, |
450 | &db1200_stac_dev, | 457 | &db1200_stac_dev, |
458 | &db1200_sound_dev, | ||
451 | }; | 459 | }; |
452 | 460 | ||
453 | static int __init db1200_dev_init(void) | 461 | static int __init db1200_dev_init(void) |
@@ -507,10 +515,12 @@ static int __init db1200_dev_init(void) | |||
507 | if (sw == BCSR_SWITCHES_DIP_8) { | 515 | if (sw == BCSR_SWITCHES_DIP_8) { |
508 | bcsr_mod(BCSR_RESETS, 0, BCSR_RESETS_PSC1MUX); | 516 | bcsr_mod(BCSR_RESETS, 0, BCSR_RESETS_PSC1MUX); |
509 | db1200_audio_dev.name = "au1xpsc_i2s"; | 517 | db1200_audio_dev.name = "au1xpsc_i2s"; |
518 | db1200_sound_dev.name = "db1200-i2s"; | ||
510 | printk(KERN_INFO " S6.7 ON : PSC1 mode I2S\n"); | 519 | printk(KERN_INFO " S6.7 ON : PSC1 mode I2S\n"); |
511 | } else { | 520 | } else { |
512 | bcsr_mod(BCSR_RESETS, BCSR_RESETS_PSC1MUX, 0); | 521 | bcsr_mod(BCSR_RESETS, BCSR_RESETS_PSC1MUX, 0); |
513 | db1200_audio_dev.name = "au1xpsc_ac97"; | 522 | db1200_audio_dev.name = "au1xpsc_ac97"; |
523 | db1200_sound_dev.name = "db1200-ac97"; | ||
514 | printk(KERN_INFO " S6.7 OFF: PSC1 mode AC97\n"); | 524 | printk(KERN_INFO " S6.7 OFF: PSC1 mode AC97\n"); |
515 | } | 525 | } |
516 | 526 | ||