aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mx31lilly.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@caiaq.de>2009-05-20 13:54:38 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-05-26 06:31:37 -0400
commit38160e0b0126565947e986701ae1bdbff01f121d (patch)
treebf9812a4b79ecc59b03f377a523bd26fdc23e11c /arch/arm/mach-mx3/mx31lilly.c
parentb99238721bf62c216d556b4ba63bdf410e068284 (diff)
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>
Diffstat (limited to 'arch/arm/mach-mx3/mx31lilly.c')
-rw-r--r--arch/arm/mach-mx3/mx31lilly.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mx31lilly.c b/arch/arm/mach-mx3/mx31lilly.c
index e5339341c0b..f15a2eb7bd8 100644
--- a/arch/arm/mach-mx3/mx31lilly.c
+++ b/arch/arm/mach-mx3/mx31lilly.c
@@ -30,6 +30,7 @@
30#include <linux/platform_device.h> 30#include <linux/platform_device.h>
31#include <linux/interrupt.h> 31#include <linux/interrupt.h>
32#include <linux/smsc911x.h> 32#include <linux/smsc911x.h>
33#include <linux/mtd/physmap.h>
33 34
34#include <asm/mach-types.h> 35#include <asm/mach-types.h>
35#include <asm/mach/arch.h> 36#include <asm/mach/arch.h>
@@ -83,8 +84,30 @@ static struct platform_device smsc91x_device = {
83 } 84 }
84}; 85};
85 86
87/* NOR flash */
88static struct physmap_flash_data nor_flash_data = {
89 .width = 2,
90};
91
92static struct resource nor_flash_resource = {
93 .start = 0xa0000000,
94 .end = 0xa1ffffff,
95 .flags = IORESOURCE_MEM,
96};
97
98static struct platform_device physmap_flash_device = {
99 .name = "physmap-flash",
100 .id = 0,
101 .dev = {
102 .platform_data = &nor_flash_data,
103 },
104 .resource = &nor_flash_resource,
105 .num_resources = 1,
106};
107
86static struct platform_device *devices[] __initdata = { 108static struct platform_device *devices[] __initdata = {
87 &smsc91x_device, 109 &smsc91x_device,
110 &physmap_flash_device,
88}; 111};
89 112
90static int mx31lilly_baseboard; 113static int mx31lilly_baseboard;