Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176910
b: refs/heads/master
c: c1558b5
h: refs/heads/master
v: v3
  • Loading branch information
Alessandro Rubini authored and David Woodhouse committed Sep 24, 2009
1 parent 4f02d4c commit 9122e0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30631cb82d5c6c662d5ec682beaa834c1f9f0987
refs/heads/master: c1558b55c55620f54f0f78cb8295947a2a3f6de2
11 changes: 6 additions & 5 deletions trunk/arch/arm/mach-nomadik/board-nhk8815.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/gpio.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/onenand.h>
#include <linux/mtd/partitions.h>
#include <linux/io.h>
#include <asm/sizes.h>
Expand Down Expand Up @@ -142,7 +143,7 @@ static struct mtd_partition nhk8815_onenand_partitions[] = {
}
};

static struct flash_platform_data nhk8815_onenand_data = {
static struct onenand_platform_data nhk8815_onenand_data = {
.parts = nhk8815_onenand_partitions,
.nr_parts = ARRAY_SIZE(nhk8815_onenand_partitions),
};
Expand All @@ -156,7 +157,7 @@ static struct resource nhk8815_onenand_resource[] = {
};

static struct platform_device nhk8815_onenand_device = {
.name = "onenand",
.name = "onenand-flash",
.id = -1,
.dev = {
.platform_data = &nhk8815_onenand_data,
Expand All @@ -167,10 +168,10 @@ static struct platform_device nhk8815_onenand_device = {

static void __init nhk8815_onenand_init(void)
{
#ifdef CONFIG_ONENAND
#ifdef CONFIG_MTD_ONENAND
/* Set up SMCS0 for OneNand */
writel(0x000030db, FSMC_BCR0);
writel(0x02100551, FSMC_BTR0);
writel(0x000030db, FSMC_BCR(0));
writel(0x02100551, FSMC_BTR(0));
#endif
}

Expand Down

0 comments on commit 9122e0a

Please sign in to comment.