mtd/drivers/mtd/nand rtc_from4.c,1.3,1.4

gleixner at infradead.org gleixner at infradead.org
Mon Sep 20 07:41:55 EDT 2004


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

Modified Files:
	rtc_from4.c 
Log Message:
use the bitreversed ecc

Index: rtc_from4.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/rtc_from4.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- rtc_from4.c	20 Sep 2004 08:44:28 -0000	1.3
+++ rtc_from4.c	20 Sep 2004 11:41:52 -0000	1.4
@@ -392,12 +392,12 @@
 	}
 
 	/* convert into 6 10bit parity fields */
-	rpar[0] =  ((uint16_t)ecc[0])               | (((uint16_t)ecc1[1] << 8) & 0x300);
-	rpar[1] = (((uint16_t)ecc[1] >> 2) & 0x03f) | (((uint16_t)ecc1[2] << 6) & 0x3c0);
-	rpar[2] = (((uint16_t)ecc[2] >> 4) & 0x00f) | (((uint16_t)ecc1[3] << 4) & 0x3f0);
-	rpar[3] = (((uint16_t)ecc[3] >> 6) & 0x003) | (((uint16_t)ecc1[4] << 2) & 0x3fc);
-	rpar[4] =  ((uint16_t)ecc[5])               | (((uint16_t)ecc1[6] << 8) & 0x300);
-	rpar[5] = (((uint16_t)ecc[6] >> 2) & 0x03f) | (((uint16_t)ecc1[7] << 6) & 0x3c0);
+	rpar[0] =  ((uint16_t)ecc[0])               | (((uint16_t)ecc[1] << 8) & 0x300);
+	rpar[1] = (((uint16_t)ecc[1] >> 2) & 0x03f) | (((uint16_t)ecc[2] << 6) & 0x3c0);
+	rpar[2] = (((uint16_t)ecc[2] >> 4) & 0x00f) | (((uint16_t)ecc[3] << 4) & 0x3f0);
+	rpar[3] = (((uint16_t)ecc[3] >> 6) & 0x003) | (((uint16_t)ecc[4] << 2) & 0x3fc);
+	rpar[4] =  ((uint16_t)ecc[5])               | (((uint16_t)ecc[6] << 8) & 0x300);
+	rpar[5] = (((uint16_t)ecc[6] >> 2) & 0x03f) | (((uint16_t)ecc[7] << 6) & 0x3c0);
 
 	/* Let the library code do its magic. 
 	 * Set the data inversion mask to 0xff, as the FPGA inverts data on read





More information about the linux-mtd-cvs mailing list