diff mbox

[2/2] mx1ads: Add cs89x0 network support

Message ID 1240387172-21818-3-git-send-email-s.hauer@pengutronix.de
State Changes Requested, archived
Delegated to: David Miller
Headers show

Commit Message

Sascha Hauer April 22, 2009, 7:59 a.m. UTC
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/mach-mx1/mx1ads.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/arch/arm/mach-mx1/mx1ads.c b/arch/arm/mach-mx1/mx1ads.c
index e54057f..6d23fcc 100644
--- a/arch/arm/mach-mx1/mx1ads.c
+++ b/arch/arm/mach-mx1/mx1ads.c
@@ -155,6 +155,24 @@  static struct i2c_board_info mx1ads_i2c_devices[] = {
 	},
 };
 
+static struct resource cs89x0_resources[] = {
+	{
+		.start  = IMX_CS4_PHYS + 0x300,
+		.end    = IMX_CS4_PHYS + 0x300 + 15,
+		.flags  = IORESOURCE_MEM,
+	}, {
+		.start  = IRQ_GPIOC(17),
+		.end    = IRQ_GPIOC(17),
+		.flags  = IORESOURCE_IRQ,
+	},
+};
+
+static struct platform_device cs89x0_device = {
+	.name           = "cirrus-cs89x0",
+	.num_resources  = ARRAY_SIZE(cs89x0_resources),
+	.resource       = cs89x0_resources,
+};
+
 /*
  * Board init
  */
@@ -172,6 +190,8 @@  static void __init mx1ads_init(void)
 				ARRAY_SIZE(mx1ads_i2c_devices));
 
 	mxc_register_device(&imx_i2c_device, &mx1ads_i2c_data);
+
+	platform_device_register(&cs89x0_device);
 }
 
 static void __init mx1ads_timer_init(void)