mtd/drivers/mtd/devices doc2000.c,1.48,1.49 doc2001.c,1.36,1.37
gleixner at infradead.org
gleixner at infradead.org
Sun Dec 1 08:24:17 EST 2002
- Previous message: mtd/drivers/mtd/nand Config.in,1.10,1.11 Kconfig,1.2,1.3 Makefile,1.9,1.10 nand.c,1.34,1.35
- Next message: mtd/include/linux/mtd nand.h,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/tmp/cvs-serv12986
Modified Files:
doc2000.c doc2001.c
Log Message:
make doc use nand_ids from drivers/nand, updated to new structures
Index: doc2000.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/doc2000.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- doc2000.c 13 Sep 2002 15:22:33 -0000 1.48
+++ doc2000.c 1 Dec 2002 13:24:14 -0000 1.49
@@ -22,7 +22,6 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
-#include <linux/mtd/nand_ids.h>
#include <linux/mtd/doc2000.h>
#define DOC_SUPPORT_2000
@@ -374,8 +373,12 @@
/* Print and store the manufacturer and ID codes. */
for (i = 0; nand_flash_ids[i].name != NULL; i++) {
- if (mfr == nand_flash_ids[i].manufacture_id &&
- id == nand_flash_ids[i].model_id) {
+ if (id == nand_flash_ids[i].id) {
+ /* Try to identify manufacturer */
+ for (i = 0; nand_manuf_ids[i].id != 0x0; i++) {
+ if (nand_manuf_ids[i].id == mfr)
+ break;
+ }
printk(KERN_INFO
"Flash chip found: Manufacturer ID: %2.2X, "
"Chip ID: %2.2X (%s)\n", mfr, id,
@@ -387,7 +390,7 @@
nand_flash_ids[i].chipshift;
doc->page256 = nand_flash_ids[i].page256;
doc->pageadrlen =
- nand_flash_ids[i].pageadrlen;
+ nand_flash_ids[i].chipshift > 25 ? 3 : 2;
doc->erasesize =
nand_flash_ids[i].erasesize;
return 1;
Index: doc2001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/doc2001.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- doc2001.c 29 Aug 2002 21:43:26 -0000 1.36
+++ doc2001.c 1 Dec 2002 13:24:14 -0000 1.37
@@ -22,7 +22,6 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
-#include <linux/mtd/nand_ids.h>
#include <linux/mtd/doc2000.h>
/* #define ECC_DEBUG */
@@ -216,8 +215,12 @@
/* FIXME: to deal with multi-flash on multi-Millennium case more carefully */
for (i = 0; nand_flash_ids[i].name != NULL; i++) {
- if (mfr == nand_flash_ids[i].manufacture_id &&
- id == nand_flash_ids[i].model_id) {
+ if ( id == nand_flash_ids[i].model_id) {
+ /* Try to identify manufacturer */
+ for (i = 0; nand_manuf_ids[i].id != 0x0; i++) {
+ if (nand_manuf_ids[i].id == mfr)
+ break;
+ }
printk(KERN_INFO "Flash chip found: Manufacturer ID: %2.2X, "
"Chip ID: %2.2X (%s)\n",
mfr, id, nand_flash_ids[i].name);
- Previous message: mtd/drivers/mtd/nand Config.in,1.10,1.11 Kconfig,1.2,1.3 Makefile,1.9,1.10 nand.c,1.34,1.35
- Next message: mtd/include/linux/mtd nand.h,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list