aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/audmux-v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-mxc/audmux-v2.c')
-rw-r--r--arch/arm/plat-mxc/audmux-v2.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/arch/arm/plat-mxc/audmux-v2.c b/arch/arm/plat-mxc/audmux-v2.c
index 175e3647bb27..8cced35009bd 100644
--- a/arch/arm/plat-mxc/audmux-v2.c
+++ b/arch/arm/plat-mxc/audmux-v2.c
@@ -187,18 +187,11 @@ EXPORT_SYMBOL_GPL(mxc_audmux_v2_configure_port);
187static int mxc_audmux_v2_init(void) 187static int mxc_audmux_v2_init(void)
188{ 188{
189 int ret; 189 int ret;
190#if defined(CONFIG_ARCH_MX5)
191 if (cpu_is_mx51()) { 190 if (cpu_is_mx51()) {
192 audmux_base = MX51_IO_ADDRESS(MX51_AUDMUX_BASE_ADDR); 191 audmux_base = MX51_IO_ADDRESS(MX51_AUDMUX_BASE_ADDR);
193 ret = 0; 192 } else if (cpu_is_mx31()) {
194 return ret;
195 }
196#endif
197#if defined(CONFIG_ARCH_MX3)
198 if (cpu_is_mx31())
199 audmux_base = MX31_IO_ADDRESS(MX31_AUDMUX_BASE_ADDR); 193 audmux_base = MX31_IO_ADDRESS(MX31_AUDMUX_BASE_ADDR);
200 194 } else if (cpu_is_mx35()) {
201 else if (cpu_is_mx35()) {
202 audmux_clk = clk_get(NULL, "audmux"); 195 audmux_clk = clk_get(NULL, "audmux");
203 if (IS_ERR(audmux_clk)) { 196 if (IS_ERR(audmux_clk)) {
204 ret = PTR_ERR(audmux_clk); 197 ret = PTR_ERR(audmux_clk);
@@ -207,10 +200,7 @@ static int mxc_audmux_v2_init(void)
207 return ret; 200 return ret;
208 } 201 }
209 audmux_base = MX35_IO_ADDRESS(MX35_AUDMUX_BASE_ADDR); 202 audmux_base = MX35_IO_ADDRESS(MX35_AUDMUX_BASE_ADDR);
210 } 203 } else if (cpu_is_mx25()) {
211#endif
212#if defined(CONFIG_SOC_IMX25)
213 if (cpu_is_mx25()) {
214 audmux_clk = clk_get(NULL, "audmux"); 204 audmux_clk = clk_get(NULL, "audmux");
215 if (IS_ERR(audmux_clk)) { 205 if (IS_ERR(audmux_clk)) {
216 ret = PTR_ERR(audmux_clk); 206 ret = PTR_ERR(audmux_clk);
@@ -220,7 +210,7 @@ static int mxc_audmux_v2_init(void)
220 } 210 }
221 audmux_base = MX25_IO_ADDRESS(MX25_AUDMUX_BASE_ADDR); 211 audmux_base = MX25_IO_ADDRESS(MX25_AUDMUX_BASE_ADDR);
222 } 212 }
223#endif /* if defined(CONFIG_SOC_IMX25) */ 213
224 audmux_debugfs_init(); 214 audmux_debugfs_init();
225 215
226 return 0; 216 return 0;