ARM Nomadik: use new OneNand name and pdata

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Sep 24 15:59:02 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c1558b55c55620f54f0f78cb8295947a2a3f6de2
Commit:     c1558b55c55620f54f0f78cb8295947a2a3f6de2
Parent:     30631cb82d5c6c662d5ec682beaa834c1f9f0987
Author:     Alessandro Rubini <rubini at unipv.it>
AuthorDate: Sun Sep 20 23:28:24 2009 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Sep 24 12:55:15 2009 -0700

    ARM Nomadik: use new OneNand name and pdata
    
    This enables the onenand with the new platform device name.
    Moreover, it fixes a related typo that doesn't deserve a
    separate patch.
    
    Signed-off-by: Alessandro Rubini <rubini at unipv.it>
    Acked-by: Andrea Gallo <andrea.gallo at stericsson.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 arch/arm/mach-nomadik/board-nhk8815.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-nomadik/board-nhk8815.c b/arch/arm/mach-nomadik/board-nhk8815.c
index 6bfd537..781b915 100644
--- a/arch/arm/mach-nomadik/board-nhk8815.c
+++ b/arch/arm/mach-nomadik/board-nhk8815.c
@@ -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>
@@ -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),
 };
@@ -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,
@@ -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
 }
 



More information about the linux-mtd-cvs mailing list