diff options
author | Igor Grinberg <grinberg@compulab.co.il> | 2009-10-14 03:20:20 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-11-30 20:03:07 -0500 |
commit | 74e74defd6c471fc7ec108e64cb953164940a122 (patch) | |
tree | a8cde3f6da4c76cb35f289cc71264eebd16bf7ce | |
parent | 83e560eee12b3215c193338496090838e5f6d1cb (diff) |
[ARM] pxa/cm-x300: add ac97 controller registration
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
-rw-r--r-- | arch/arm/mach-pxa/cm-x300.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index ecee7e829110..8726dc7c73a6 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <mach/ohci.h> | 40 | #include <mach/ohci.h> |
41 | #include <plat/i2c.h> | 41 | #include <plat/i2c.h> |
42 | #include <plat/pxa3xx_nand.h> | 42 | #include <plat/pxa3xx_nand.h> |
43 | #include <mach/audio.h> | ||
43 | 44 | ||
44 | #include <asm/mach/map.h> | 45 | #include <asm/mach/map.h> |
45 | 46 | ||
@@ -305,6 +306,15 @@ static void __init cm_x300_init_spi(void) | |||
305 | static inline void cm_x300_init_spi(void) {} | 306 | static inline void cm_x300_init_spi(void) {} |
306 | #endif | 307 | #endif |
307 | 308 | ||
309 | #if defined(CONFIG_SND_PXA2XX_LIB_AC97) | ||
310 | static void __init cm_x300_init_ac97(void) | ||
311 | { | ||
312 | pxa_set_ac97_info(NULL); | ||
313 | } | ||
314 | #else | ||
315 | static inline void cm_x300_init_ac97(void) {} | ||
316 | #endif | ||
317 | |||
308 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) | 318 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) |
309 | static struct mtd_partition cm_x300_nand_partitions[] = { | 319 | static struct mtd_partition cm_x300_nand_partitions[] = { |
310 | [0] = { | 320 | [0] = { |
@@ -531,6 +541,7 @@ static void __init cm_x300_init(void) | |||
531 | cm_x300_init_i2c(); | 541 | cm_x300_init_i2c(); |
532 | cm_x300_init_spi(); | 542 | cm_x300_init_spi(); |
533 | cm_x300_init_rtc(); | 543 | cm_x300_init_rtc(); |
544 | cm_x300_init_ac97(); | ||
534 | } | 545 | } |
535 | 546 | ||
536 | static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags, | 547 | static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags, |