aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mm-imx5.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-imx/mm-imx5.c')
-rw-r--r--arch/arm/mach-imx/mm-imx5.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c
index 49549a72dc7d..dc7c4ed81531 100644
--- a/arch/arm/mach-imx/mm-imx5.c
+++ b/arch/arm/mach-imx/mm-imx5.c
@@ -164,6 +164,18 @@ static struct sdma_platform_data imx53_sdma_pdata __initdata = {
164 .script_addrs = &imx53_sdma_script, 164 .script_addrs = &imx53_sdma_script,
165}; 165};
166 166
167static const struct resource imx50_audmux_res[] __initconst = {
168 DEFINE_RES_MEM(MX50_AUDMUX_BASE_ADDR, SZ_16K),
169};
170
171static const struct resource imx51_audmux_res[] __initconst = {
172 DEFINE_RES_MEM(MX51_AUDMUX_BASE_ADDR, SZ_16K),
173};
174
175static const struct resource imx53_audmux_res[] __initconst = {
176 DEFINE_RES_MEM(MX53_AUDMUX_BASE_ADDR, SZ_16K),
177};
178
167void __init imx50_soc_init(void) 179void __init imx50_soc_init(void)
168{ 180{
169 /* i.mx50 has the i.mx31 type gpio */ 181 /* i.mx50 has the i.mx31 type gpio */
@@ -173,6 +185,10 @@ void __init imx50_soc_init(void)
173 mxc_register_gpio("imx31-gpio", 3, MX50_GPIO4_BASE_ADDR, SZ_16K, MX50_INT_GPIO4_LOW, MX50_INT_GPIO4_HIGH); 185 mxc_register_gpio("imx31-gpio", 3, MX50_GPIO4_BASE_ADDR, SZ_16K, MX50_INT_GPIO4_LOW, MX50_INT_GPIO4_HIGH);
174 mxc_register_gpio("imx31-gpio", 4, MX50_GPIO5_BASE_ADDR, SZ_16K, MX50_INT_GPIO5_LOW, MX50_INT_GPIO5_HIGH); 186 mxc_register_gpio("imx31-gpio", 4, MX50_GPIO5_BASE_ADDR, SZ_16K, MX50_INT_GPIO5_LOW, MX50_INT_GPIO5_HIGH);
175 mxc_register_gpio("imx31-gpio", 5, MX50_GPIO6_BASE_ADDR, SZ_16K, MX50_INT_GPIO6_LOW, MX50_INT_GPIO6_HIGH); 187 mxc_register_gpio("imx31-gpio", 5, MX50_GPIO6_BASE_ADDR, SZ_16K, MX50_INT_GPIO6_LOW, MX50_INT_GPIO6_HIGH);
188
189 /* i.mx50 has the i.mx31 type audmux */
190 platform_device_register_simple("imx31-audmux", 0, imx50_audmux_res,
191 ARRAY_SIZE(imx50_audmux_res));
176} 192}
177 193
178void __init imx51_soc_init(void) 194void __init imx51_soc_init(void)
@@ -185,6 +201,9 @@ void __init imx51_soc_init(void)
185 201
186 /* i.mx51 has the i.mx35 type sdma */ 202 /* i.mx51 has the i.mx35 type sdma */
187 imx_add_imx_sdma("imx35-sdma", MX51_SDMA_BASE_ADDR, MX51_INT_SDMA, &imx51_sdma_pdata); 203 imx_add_imx_sdma("imx35-sdma", MX51_SDMA_BASE_ADDR, MX51_INT_SDMA, &imx51_sdma_pdata);
204 /* i.mx51 has the i.mx31 type audmux */
205 platform_device_register_simple("imx31-audmux", 0, imx51_audmux_res,
206 ARRAY_SIZE(imx51_audmux_res));
188} 207}
189 208
190void __init imx53_soc_init(void) 209void __init imx53_soc_init(void)
@@ -200,4 +219,7 @@ void __init imx53_soc_init(void)
200 219
201 /* i.mx53 has the i.mx35 type sdma */ 220 /* i.mx53 has the i.mx35 type sdma */
202 imx_add_imx_sdma("imx35-sdma", MX53_SDMA_BASE_ADDR, MX53_INT_SDMA, &imx53_sdma_pdata); 221 imx_add_imx_sdma("imx35-sdma", MX53_SDMA_BASE_ADDR, MX53_INT_SDMA, &imx53_sdma_pdata);
222 /* i.mx53 has the i.mx31 type audmux */
223 platform_device_register_simple("imx31-audmux", 0, imx53_audmux_res,
224 ARRAY_SIZE(imx53_audmux_res));
203} 225}