[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1240387172-21818-3-git-send-email-s.hauer@pengutronix.de>
Date: Wed, 22 Apr 2009 09:59:32 +0200
From: Sascha Hauer <s.hauer@...gutronix.de>
To: netdev@...r.kernel.org
Cc: Lennert Buytenhek <kernel@...tstofly.org>,
Ivo Clarysse <ivo.clarysse@...il.com>,
Gilles Chanteperdrix <gilles.chanteperdrix@...omai.org>,
Sascha Hauer <s.hauer@...gutronix.de>
Subject: [PATCH 2/2] mx1ads: Add cs89x0 network support
Signed-off-by: Sascha Hauer <s.hauer@...gutronix.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists