Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149179
b: refs/heads/master
c: 38160e0
h: refs/heads/master
i:
  149177: d12e3d7
  149175: bdcb3d9
v: v3
  • Loading branch information
Daniel Mack authored and Sascha Hauer committed May 26, 2009
1 parent 38984d9 commit 7036fe6
Show file tree
Hide file tree
Showing 2 changed files with 24 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: b99238721bf62c216d556b4ba63bdf410e068284
refs/heads/master: 38160e0b0126565947e986701ae1bdbff01f121d
23 changes: 23 additions & 0 deletions trunk/arch/arm/mach-mx3/mx31lilly.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7036fe6

Please sign in to comment.