diff options
Diffstat (limited to 'arch/arm/plat-mxc/audmux-v2.c')
| -rw-r--r-- | arch/arm/plat-mxc/audmux-v2.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/arch/arm/plat-mxc/audmux-v2.c b/arch/arm/plat-mxc/audmux-v2.c index 0c2cc5cd4d83..f9e7cdbd0005 100644 --- a/arch/arm/plat-mxc/audmux-v2.c +++ b/arch/arm/plat-mxc/audmux-v2.c | |||
| @@ -13,10 +13,6 @@ | |||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. | 15 | * GNU General Public License for more details. |
| 16 | * | ||
| 17 | * You should have received a copy of the GNU General Public License | ||
| 18 | * along with this program; if not, write to the Free Software | ||
| 19 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 20 | */ | 16 | */ |
| 21 | 17 | ||
| 22 | #include <linux/module.h> | 18 | #include <linux/module.h> |
| @@ -191,6 +187,7 @@ static int mxc_audmux_v2_init(void) | |||
| 191 | { | 187 | { |
| 192 | int ret; | 188 | int ret; |
| 193 | 189 | ||
| 190 | #if defined(CONFIG_ARCH_MX3) | ||
| 194 | if (cpu_is_mx31()) | 191 | if (cpu_is_mx31()) |
| 195 | audmux_base = MX31_IO_ADDRESS(MX31_AUDMUX_BASE_ADDR); | 192 | audmux_base = MX31_IO_ADDRESS(MX31_AUDMUX_BASE_ADDR); |
| 196 | 193 | ||
| @@ -204,7 +201,19 @@ static int mxc_audmux_v2_init(void) | |||
| 204 | } | 201 | } |
| 205 | audmux_base = MX35_IO_ADDRESS(MX35_AUDMUX_BASE_ADDR); | 202 | audmux_base = MX35_IO_ADDRESS(MX35_AUDMUX_BASE_ADDR); |
| 206 | } | 203 | } |
| 207 | 204 | #endif | |
| 205 | #if defined(CONFIG_ARCH_MX25) | ||
| 206 | if (cpu_is_mx25()) { | ||
| 207 | audmux_clk = clk_get(NULL, "audmux"); | ||
| 208 | if (IS_ERR(audmux_clk)) { | ||
| 209 | ret = PTR_ERR(audmux_clk); | ||
| 210 | printk(KERN_ERR "%s: cannot get clock: %d\n", __func__, | ||
| 211 | ret); | ||
| 212 | return ret; | ||
| 213 | } | ||
| 214 | audmux_base = MX25_IO_ADDRESS(MX25_AUDMUX_BASE_ADDR); | ||
| 215 | } | ||
| 216 | #endif | ||
| 208 | audmux_debugfs_init(); | 217 | audmux_debugfs_init(); |
| 209 | 218 | ||
| 210 | return 0; | 219 | return 0; |
