mtd/drivers/mtd/nand autcpu12.c,1.5,1.6

gleixner at infradead.org gleixner at infradead.org
Mon Nov 11 10:47:59 EST 2002


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

Modified Files:
	autcpu12.c 
Log Message:
128MB Card support

Index: autcpu12.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/autcpu12.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- autcpu12.c	29 Aug 2002 21:44:14 -0000	1.5
+++ autcpu12.c	11 Nov 2002 15:47:56 -0000	1.6
@@ -1,7 +1,7 @@
 /*
  *  drivers/mtd/autcpu12.c
  *
- *  Copyright (c) 2001 Thomas Gleixner (gleixner at autronix.de)
+ *  Copyright (c) 2002 Thomas Gleixner <tgxl at linutronix.de>
  *
  *  Derived from drivers/mtd/spia.c
  * 	 Copyright (C) 2000 Steven J. Hill (sjhill at cotw.com)
@@ -17,11 +17,15 @@
  *   autronix autcpu12 board, which is a SmartMediaCard. It supports 
  *   16MB, 32MB and 64MB cards.
  *
+ *
  *	02-12-2002 TG	Cleanup of module params
  *
  *	02-20-2002 TG	adjusted for different rd/wr adress support
  *			added support for read device ready/busy line
  *			added page_cache
+ *
+ *	10-06-2002 TG	128K card support added
+ *
  */
 
 #include <linux/slab.h>
@@ -94,10 +98,19 @@
 	  size:   48 * SZ_1M},
 };
 
+static struct mtd_partition partition_info128k[] = {
+	{ name: "AUTCPU12 flash partition 1",
+	  offset:  0,
+	  size:   16 * SZ_1M },
+	{ name: "AUTCPU12 flash partition 2",
+	  offset: 16 * SZ_1M,
+	  size:   112 * SZ_1M},
+};
+
 #define NUM_PARTITIONS16K 2
 #define NUM_PARTITIONS32K 2
 #define NUM_PARTITIONS64K 2
-
+#define NUM_PARTITIONS128K 2
 /* 
  *	hardware specific access to control-lines
 */
@@ -198,6 +211,7 @@
 		case SZ_16M: add_mtd_partitions(autcpu12_mtd, partition_info16k, NUM_PARTITIONS16K); break;
 		case SZ_32M: add_mtd_partitions(autcpu12_mtd, partition_info32k, NUM_PARTITIONS32K); break;
 		case SZ_64M: add_mtd_partitions(autcpu12_mtd, partition_info64k, NUM_PARTITIONS64K); break; 
+		case SZ_128M: add_mtd_partitions(autcpu12_mtd, partition_info128k, NUM_PARTITIONS128K); break; 
 		default: {
 			printk ("Unsupported SmartMedia device\n"); 
 			err = -ENXIO;
@@ -248,5 +262,5 @@
 #endif
 
 MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Thomas Gleixner <gleixner at autronix.de>");
+MODULE_AUTHOR("Thomas Gleixner <tglx at linutronix.de>");
 MODULE_DESCRIPTION("Glue layer for SmartMediaCard on autronix autcpu12");





More information about the linux-mtd-cvs mailing list