summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2/devices.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-01-26 17:26:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-13 10:34:06 +0100
commit879fea1b486d2b6fa399c40b8aed172b0dfdedb9 (patch)
tree24f33831d65222ea3ebee086e149c599ed3aff6c /arch/arm/mach-mx2/devices.c
parentmx31ads: Initial support for Wolfson Microelectronics 1133-EV1 module (diff)
downloadlinux-879fea1b486d2b6fa399c40b8aed172b0dfdedb9.tar.xz
linux-879fea1b486d2b6fa399c40b8aed172b0dfdedb9.zip
[ARM] MX2: Add FEC platform device
The in kernel FEC driver has recently been ported to a platform driver. Add a platform_device for it and register it for pcm038 and mx27ads. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2/devices.c')
-rw-r--r--arch/arm/mach-mx2/devices.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c
index 07061e644545..684d5d92c2e4 100644
--- a/arch/arm/mach-mx2/devices.c
+++ b/arch/arm/mach-mx2/devices.c
@@ -258,7 +258,27 @@ struct platform_device mxc_fb_device = {
.coherent_dma_mask = 0xFFFFFFFF,
},
};
+#endif
+#ifdef CONFIG_MACH_MX27
+static struct resource mxc_fec_resources[] = {
+ {
+ .start = FEC_BASE_ADDR,
+ .end = FEC_BASE_ADDR + 0xfff,
+ .flags = IORESOURCE_MEM
+ }, {
+ .start = MXC_INT_FEC,
+ .end = MXC_INT_FEC,
+ .flags = IORESOURCE_IRQ
+ },
+};
+
+struct platform_device mxc_fec_device = {
+ .name = "fec",
+ .id = 0,
+ .num_resources = ARRAY_SIZE(mxc_fec_resources),
+ .resource = mxc_fec_resources,
+};
#endif
/* GPIO port description */