]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: SMDK2443: Enable AC97 device
authorJassi Brar <jassi.brar@samsung.com>
Fri, 12 Feb 2010 10:38:50 +0000 (10:38 +0000)
committerBen Dooks <ben-linux@fluff.org>
Wed, 24 Feb 2010 01:58:17 +0000 (01:58 +0000)
Add AC97 controller to platform devices and initialize the AC97 gpios.

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c2443/mach-smdk2443.c

index d65afdee59c5e0e5d2011a16a4fdf3e100f13797..e2e362bda9b7e21123750435f3220c098d50fdcd 100644 (file)
@@ -106,6 +106,9 @@ static struct platform_device *smdk2443_devices[] __initdata = {
        &s3c_device_wdt,
        &s3c_device_i2c0,
        &s3c_device_hsmmc0,
+#ifdef CONFIG_SND_SOC_SMDK2443_WM9710
+       &s3c_device_ac97,
+#endif
 };
 
 static void __init smdk2443_map_io(void)
@@ -118,6 +121,11 @@ static void __init smdk2443_map_io(void)
 static void __init smdk2443_machine_init(void)
 {
        s3c_i2c0_set_platdata(NULL);
+
+#ifdef CONFIG_SND_SOC_SMDK2443_WM9710
+       s3c24xx_ac97_setup_gpio(S3C24XX_AC97_GPE0);
+#endif
+
        platform_add_devices(smdk2443_devices, ARRAY_SIZE(smdk2443_devices));
        smdk_machine_init();
 }