summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/devices/platform-fec.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-mxc/devices/platform-fec.c')
-rw-r--r--arch/arm/plat-mxc/devices/platform-fec.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-fec.c b/arch/arm/plat-mxc/devices/platform-fec.c
index 4ad06d2cfb72..c0e8709f036b 100644
--- a/arch/arm/plat-mxc/devices/platform-fec.c
+++ b/arch/arm/plat-mxc/devices/platform-fec.c
@@ -55,11 +55,22 @@ const struct imx_fec_data imx6q_fec_data __initconst =
#endif
#ifdef CONFIG_SOC_MVFA5
- const struct imx_fec_data mvf_fec_data __initconst =
- imx_fec_data_entry_single(MVF);
+#define mvf_fec_data_entry_single(soc, id) \
+ { \
+ .iobase = soc ## _MAC ## id ## _BASE_ADDR, \
+ .irq = soc ## _INT_ENET_MAC ## id, \
+ }
+
+const struct imx_fec_data mvf_fec_data[] __initconst = {
+ mvf_fec_data_entry_single(MVF, 0),
+ mvf_fec_data_entry_single(MVF, 1),
+};
#endif
struct platform_device *__init imx_add_fec(
+#ifdef CONFIG_SOC_MVFA5
+ const int id,
+#endif
const struct imx_fec_data *data,
const struct fec_platform_data *pdata)
{
@@ -75,7 +86,11 @@ struct platform_device *__init imx_add_fec(
},
};
+#ifdef CONFIG_SOC_MVFA5
+ return imx_add_platform_device_dmamask("fec", id,
+#else
return imx_add_platform_device_dmamask("fec", 0,
+#endif
res, ARRAY_SIZE(res),
pdata, sizeof(*pdata), DMA_BIT_MASK(32));
}