ARM: mx51: Add audmux support
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 20 Aug 2010 14:44:34 +0000 (16:44 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 1 Oct 2010 07:33:01 +0000 (09:33 +0200)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx5/Kconfig
arch/arm/plat-mxc/audmux-v2.c

index 65bf34e1a4f6ee518e451f99589719d25fcbee32..3a4c3b32a6e781b5756551f34e81b90a8efecf24 100644 (file)
@@ -5,6 +5,7 @@ config ARCH_MX51
        default y
        select MXC_TZIC
        select ARCH_MXC_IOMUX_V3
+       select ARCH_MXC_AUDMUX_V2
 
 comment "MX5 platforms:"
 
index f9e7cdbd000568a562ac4bd062a550df73f3a853..62920490c0d6be3900b7475548a1ffbbc3d44b8a 100644 (file)
@@ -186,7 +186,13 @@ EXPORT_SYMBOL_GPL(mxc_audmux_v2_configure_port);
 static int mxc_audmux_v2_init(void)
 {
        int ret;
-
+#if defined(CONFIG_ARCH_MX5)
+       if (cpu_is_mx51()) {
+               audmux_base = MX51_IO_ADDRESS(MX51_AUDMUX_BASE_ADDR);
+               ret = 0;
+               return ret;
+       }
+#endif
 #if defined(CONFIG_ARCH_MX3)
        if (cpu_is_mx31())
                audmux_base = MX31_IO_ADDRESS(MX31_AUDMUX_BASE_ADDR);