From: Sascha Hauer Date: Sun, 23 Nov 2008 16:32:49 +0000 (+0100) Subject: [ARM] pcm037: Add support for SRAM device X-Git-Tag: v2.6.29-rc1~559^2~11^2~20 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3dad21a95ba7a4159383dd170c3b0b5fedd0f5e2;p=linux-2.6-omap-h63xx.git [ARM] pcm037: Add support for SRAM device Signed-off-by: Sascha Hauer --- diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c index 1707096d362..4438444ce74 100644 --- a/arch/arm/mach-mx3/pcm037.c +++ b/arch/arm/mach-mx3/pcm037.c @@ -21,6 +21,7 @@ #include #include +#include #include #include #include @@ -90,9 +91,30 @@ static struct platform_device pcm037_eth = { }, }; +static struct platdata_mtd_ram pcm038_sram_data = { + .bankwidth = 2, +}; + +static struct resource pcm038_sram_resource = { + .start = CS4_BASE_ADDR, + .end = CS4_BASE_ADDR + 512 * 1024 - 1, + .flags = IORESOURCE_MEM, +}; + +static struct platform_device pcm037_sram_device = { + .name = "mtd-ram", + .id = 0, + .dev = { + .platform_data = &pcm038_sram_data, + }, + .num_resources = 1, + .resource = &pcm038_sram_resource, +}; + static struct platform_device *devices[] __initdata = { &pcm037_flash, &pcm037_eth, + &pcm037_sram_device, }; /*