mtd/drivers/mtd/onenand generic.c,1.1,1.2

kyungmin.park at samsung.com kyungmin.park at samsung.com
Mon Nov 7 08:07:10 EST 2005


Update of /home/cvs/mtd/drivers/mtd/onenand
In directory phoenix.infradead.org:/tmp/cvs-serv31566/drivers/mtd/onenand

Modified Files:
	generic.c 
Log Message:
OneNAND: Use flash_platform_data

Now we use flash_platform_data instead of onenand_platform_data.
If you want to support OneNAND Sync. Burst Read, apply following patch and
enable mmcontrol 

http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3057/1

Of course, you have to implement mmcontrol function in board specific files.


Index: generic.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/onenand/generic.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- generic.c	9 Sep 2005 06:39:47 -0000	1.1
+++ generic.c	7 Nov 2005 13:07:07 -0000	1.2
@@ -24,7 +24,6 @@
 
 #define DRIVER_NAME	"onenand"
 
-
 #ifdef CONFIG_MTD_PARTITIONS
 static const char *part_probes[] = { "cmdlinepart", NULL,  };
 #endif
@@ -39,7 +38,7 @@
 {
 	struct onenand_info *info;
 	struct platform_device *pdev = to_platform_device(dev);
-	struct onenand_platform_data *pdata = pdev->dev.platform_data;
+	struct flash_platform_data *pdata = pdev->dev.platform_data;
 	struct resource *res = pdev->resource;
 	unsigned long size = res->end - res->start + 1;
 	int err;
@@ -61,7 +60,8 @@
 		goto out_release_mem_region;
 	}
 
-	info->onenand.mmcontrol = pdata->mmcontrol;
+	// FIXME Enable this, If flash_platform_data has mmcontrol method.
+//	info->onenand.mmcontrol = pdata->mmcontrol;
 
 	info->mtd.name = pdev->dev.bus_id;
 	info->mtd.priv = &info->onenand;





More information about the linux-mtd-cvs mailing list