aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-pxa/cm-x300.c11
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)
305static inline void cm_x300_init_spi(void) {} 306static inline void cm_x300_init_spi(void) {}
306#endif 307#endif
307 308
309#if defined(CONFIG_SND_PXA2XX_LIB_AC97)
310static void __init cm_x300_init_ac97(void)
311{
312 pxa_set_ac97_info(NULL);
313}
314#else
315static 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)
309static struct mtd_partition cm_x300_nand_partitions[] = { 319static 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
536static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags, 547static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags,