ARM: MX3: add NOR flash support for lilly-1131

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, June 14, 2009 - 3:03 pm

Gitweb:     http://git.kernel.org/linus/38160e0b0126565947e986701ae1bdbff01f121d
Commit:     38160e0b0126565947e986701ae1bdbff01f121d
Parent:     b99238721bf62c216d556b4ba63bdf410e068284
Author:     Daniel Mack <daniel@caiaq.de>
AuthorDate: Wed May 20 19:54:38 2009 +0200
Committer:  Sascha Hauer <s.hauer@pengutronix.de>
CommitDate: Tue May 26 12:31:37 2009 +0200

    ARM: MX3: add NOR flash support for lilly-1131
    
    Signed-off-by: Daniel Mack <daniel@caiaq.de>
    Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/mach-mx3/mx31lilly.c |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mx3/mx31lilly.c b/arch/arm/mach-mx3/mx31lilly.c
index e533934..f15a2eb 100644
--- a/arch/arm/mach-mx3/mx31lilly.c
+++ b/arch/arm/mach-mx3/mx31lilly.c
@@ -30,6 +30,7 @@
 #include <linux/platform_device.h>
 #include <linux/interrupt.h>
 #include <linux/smsc911x.h>
+#include <linux/mtd/physmap.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
@@ -83,8 +84,30 @@ static struct platform_device smsc91x_device = {
 	}
 };
 
+/* NOR flash */
+static struct physmap_flash_data nor_flash_data = {
+	.width  = 2,
+};
+
+static struct resource nor_flash_resource = {
+	.start	= 0xa0000000,
+	.end	= 0xa1ffffff,
+	.flags	= IORESOURCE_MEM,
+};
+
+static struct platform_device physmap_flash_device = {
+	.name	= "physmap-flash",
+	.id	= 0,
+	.dev	= {
+		.platform_data  = &nor_flash_data,
+	},
+	.resource = &nor_flash_resource,
+	.num_resources = 1,
+};
+
 static struct platform_device *devices[] __initdata = {
 	&smsc91x_device,
+	&physmap_flash_device,
 };
 
 static int mx31lilly_baseboard;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" 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:
ARM: MX3: add NOR flash support for lilly-1131, Linux Kernel Mailing ..., (Sun Jun 14, 3:03 pm)