Subject: [@num@/@total@] MX31: add pcm037 networking support
From: Sascha Hauer <s.hauer@pengutronix.de>

This patch adds the resources for "smsc911x" to the board setup.
Note that this is a driver currently not in mainline

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/mach-mx3/pcm037.c |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

Index: arch/arm/mach-mx3/pcm037.c
===================================================================
--- arch/arm/mach-mx3/pcm037.c.orig
+++ arch/arm/mach-mx3/pcm037.c
@@ -57,8 +57,33 @@ static struct imxuart_platform_data uart
 	.flags = 0,
 };
 
+#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
+static struct resource smsc911x_resources[] = {
+	{
+		.name = "smsc911x-memory",
+		.start = CS1_BASE_ADDR,
+		.end = CS1_BASE_ADDR + 0xFF,
+		.flags = IORESOURCE_MEM,
+	},
+	{
+		.start = IOMUX_TO_IRQ(MX31_PIN_GPIO3_1),
+		.end = IOMUX_TO_IRQ(MX31_PIN_GPIO3_1),
+		.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
+	},
+};
+static struct platform_device smsc911x_device = {
+	.name = "smsc911x",
+	.id = 0,
+	.num_resources = ARRAY_SIZE(smsc911x_resources),
+	.resource = smsc911x_resources,
+};
+#endif
+
 static struct platform_device *devices[] __initdata = {
 	&pcm037_flash,
+#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
+	&smsc911x_device,
+#endif
 };
 
 /*
