From: mkl@pengutronix.de (Marc Kleine-Budde)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] mx25: Add flexcan devices
Date: Fri, 28 May 2010 13:42:16 +0200 [thread overview]
Message-ID: <1275046938-8465-3-git-send-email-mkl@pengutronix.de> (raw)
In-Reply-To: <1275046938-8465-1-git-send-email-mkl@pengutronix.de>
From: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
arch/arm/mach-mx25/devices.c | 38 ++++++++++++++++++++++++++++++++++++++
arch/arm/mach-mx25/devices.h | 2 ++
2 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c
index 3a405fa..e8b320b 100644
--- a/arch/arm/mach-mx25/devices.c
+++ b/arch/arm/mach-mx25/devices.c
@@ -390,6 +390,44 @@ struct platform_device mxc_i2c_device2 = {
.resource = mxc_i2c_3_resources,
};
+static struct resource mxc_can_1_resources[] = {
+ {
+ .start = 0x43f88000,
+ .end = 0x43f8bfff,
+ .flags = IORESOURCE_MEM,
+ }, {
+ .start = 43,
+ .end = 43,
+ .flags = IORESOURCE_IRQ,
+ }
+};
+
+struct platform_device mxc_can_device0 = {
+ .name = "flexcan",
+ .id = 0,
+ .num_resources = ARRAY_SIZE(mxc_can_1_resources),
+ .resource = mxc_can_1_resources,
+};
+
+static struct resource mxc_can_2_resources[] = {
+ {
+ .start = 0x43f8c000,
+ .end = 0x43f8ffff,
+ .flags = IORESOURCE_MEM,
+ }, {
+ .start = 44,
+ .end = 44,
+ .flags = IORESOURCE_IRQ,
+ }
+};
+
+struct platform_device mxc_can_device1 = {
+ .name = "flexcan",
+ .id = 1,
+ .num_resources = ARRAY_SIZE(mxc_can_2_resources),
+ .resource = mxc_can_2_resources,
+};
+
static struct mxc_gpio_port imx_gpio_ports[] = {
{
.chip.label = "gpio-0",
diff --git a/arch/arm/mach-mx25/devices.h b/arch/arm/mach-mx25/devices.h
index cee12c0..e3267d6 100644
--- a/arch/arm/mach-mx25/devices.h
+++ b/arch/arm/mach-mx25/devices.h
@@ -22,3 +22,5 @@ extern struct platform_device mxc_nand_device;
extern struct platform_device mx25_rtc_device;
extern struct platform_device mx25_fb_device;
extern struct platform_device mxc_wdt;
+extern struct platform_device mxc_can_device0;
+extern struct platform_device mxc_can_device1;
--
1.7.1
next prev parent reply other threads:[~2010-05-28 11:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1275046938-8465-1-git-send-email-mkl@pengutronix.de>
2010-05-28 11:42 ` [PATCH 1/4] mx25: flexcan clock support Marc Kleine-Budde
2010-05-28 11:42 ` Marc Kleine-Budde [this message]
2010-05-28 11:42 ` [PATCH 3/4] mx35: adjust flexcan clock definition Marc Kleine-Budde
2010-05-28 11:42 ` [PATCH 4/4] mx35: add flexcan devices Marc Kleine-Budde
2010-05-28 13:34 ` Hans J. Koch
2010-05-28 13:45 ` Marc Kleine-Budde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1275046938-8465-3-git-send-email-mkl@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).