aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-11-23 11:32:49 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2008-12-16 08:57:56 -0500
commit3dad21a95ba7a4159383dd170c3b0b5fedd0f5e2 (patch)
treed3fc32501dd003942d741cba4649983825ad2ad1 /arch/arm/mach-mx3
parentba54b95899838610c8c23fb7ab88831016b81fb3 (diff)
[ARM] pcm037: Add support for SRAM device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r--arch/arm/mach-mx3/pcm037.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c
index 1707096d3623..4438444ce749 100644
--- a/arch/arm/mach-mx3/pcm037.c
+++ b/arch/arm/mach-mx3/pcm037.c
@@ -21,6 +21,7 @@
21 21
22#include <linux/platform_device.h> 22#include <linux/platform_device.h>
23#include <linux/mtd/physmap.h> 23#include <linux/mtd/physmap.h>
24#include <linux/mtd/plat-ram.h>
24#include <linux/memory.h> 25#include <linux/memory.h>
25#include <linux/gpio.h> 26#include <linux/gpio.h>
26#include <linux/smc911x.h> 27#include <linux/smc911x.h>
@@ -90,9 +91,30 @@ static struct platform_device pcm037_eth = {
90 }, 91 },
91}; 92};
92 93
94static struct platdata_mtd_ram pcm038_sram_data = {
95 .bankwidth = 2,
96};
97
98static struct resource pcm038_sram_resource = {
99 .start = CS4_BASE_ADDR,
100 .end = CS4_BASE_ADDR + 512 * 1024 - 1,
101 .flags = IORESOURCE_MEM,
102};
103
104static struct platform_device pcm037_sram_device = {
105 .name = "mtd-ram",
106 .id = 0,
107 .dev = {
108 .platform_data = &pcm038_sram_data,
109 },
110 .num_resources = 1,
111 .resource = &pcm038_sram_resource,
112};
113
93static struct platform_device *devices[] __initdata = { 114static struct platform_device *devices[] __initdata = {
94 &pcm037_flash, 115 &pcm037_flash,
95 &pcm037_eth, 116 &pcm037_eth,
117 &pcm037_sram_device,
96}; 118};
97 119
98/* 120/*