[PATCH 2/2] mx1ads: Add cs89x0 network support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sascha Hauer
Date: Wednesday, April 22, 2009 - 12:59 am

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/mach-mx1/mx1ads.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

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)
-- 
1.6.2.1

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add new cs89x0 driver, Sascha Hauer, (Wed Apr 22, 12:59 am)
[PATCH 1/2] Add an alternative cs89x0 driver, Sascha Hauer, (Wed Apr 22, 12:59 am)
[PATCH 2/2] mx1ads: Add cs89x0 network support, Sascha Hauer, (Wed Apr 22, 12:59 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Ivo Clarysse, (Wed Apr 22, 2:28 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Gilles Chanteperdrix, (Wed Apr 22, 2:42 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Sascha Hauer, (Wed Apr 22, 5:18 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Sascha Hauer, (Wed Apr 22, 5:20 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Gilles Chanteperdrix, (Wed Apr 22, 5:25 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Sascha Hauer, (Wed Apr 22, 6:05 am)
Re: [PATCH] Add new cs89x0 driver, Lennert Buytenhek, (Wed Apr 22, 3:53 pm)
Re: [PATCH] Add new cs89x0 driver, Sascha Hauer, (Thu Apr 23, 12:03 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Kurt Van Dijck, (Wed Aug 26, 3:46 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Sascha Hauer, (Mon Sep 7, 3:24 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Kurt Van Dijck, (Mon Sep 7, 5:35 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Sascha Hauer, (Mon Sep 7, 6:21 am)
Re: [PATCH 1/2] Add an alternative cs89x0 driver, Kurt Van Dijck, (Fri Oct 16, 2:37 am)
Re: [PATCH] Add new cs89x0 driver, Ben Dooks, (Tue Oct 20, 2:55 am)