Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123773
b: refs/heads/master
c: 3dad21a
h: refs/heads/master
i:
  123771: acbc785
v: v3
  • Loading branch information
Sascha Hauer committed Dec 16, 2008
1 parent 074824d commit 025dedc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba54b95899838610c8c23fb7ab88831016b81fb3
refs/heads/master: 3dad21a95ba7a4159383dd170c3b0b5fedd0f5e2
22 changes: 22 additions & 0 deletions trunk/arch/arm/mach-mx3/pcm037.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <linux/platform_device.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/plat-ram.h>
#include <linux/memory.h>
#include <linux/gpio.h>
#include <linux/smc911x.h>
Expand Down Expand Up @@ -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,
};

/*
Expand Down

0 comments on commit 025dedc

Please sign in to comment.