r1955 - trunk/src/target/kernel/patches

laforge at sita.openmoko.org laforge at sita.openmoko.org
Tue May 15 06:10:30 CEST 2007


Author: laforge
Date: 2007-05-15 06:10:26 +0200 (Tue, 15 May 2007)
New Revision: 1955

Added:
   trunk/src/target/kernel/patches/s3c2440-nand-disable-hwecc.patch
Modified:
   trunk/src/target/kernel/patches/series
Log:
add patch to disable hardware ecc for the time being...


Added: trunk/src/target/kernel/patches/s3c2440-nand-disable-hwecc.patch
===================================================================
--- trunk/src/target/kernel/patches/s3c2440-nand-disable-hwecc.patch	2007-05-14 15:05:54 UTC (rev 1954)
+++ trunk/src/target/kernel/patches/s3c2440-nand-disable-hwecc.patch	2007-05-15 04:10:26 UTC (rev 1955)
@@ -0,0 +1,17 @@
+Disable the hardware ECC checking on S3C2440 based platforms (HXD8, SMDK2440,
+GTA02) for the time being, since our u-boot doesn't yet support it for 2k page
+size NAND
+
+Index: linux-2.6.21-moko/drivers/mtd/nand/s3c2410.c
+===================================================================
+--- linux-2.6.21-moko.orig/drivers/mtd/nand/s3c2410.c
++++ linux-2.6.21-moko/drivers/mtd/nand/s3c2410.c
+@@ -644,7 +644,7 @@
+ 	nmtd->mtd.owner    = THIS_MODULE;
+ 	nmtd->set	   = set;
+ 
+-	if (hardware_ecc) {
++	if (info->cpu_type == TYPE_S3C2410 && hardware_ecc) {
+ 		chip->ecc.calculate = s3c2410_nand_calculate_ecc;
+ 		chip->ecc.correct   = s3c2410_nand_correct_data;
+ 		chip->ecc.mode	    = NAND_ECC_HW;

Modified: trunk/src/target/kernel/patches/series
===================================================================
--- trunk/src/target/kernel/patches/series	2007-05-14 15:05:54 UTC (rev 1954)
+++ trunk/src/target/kernel/patches/series	2007-05-15 04:10:26 UTC (rev 1955)
@@ -34,3 +34,4 @@
 config-nr-tty-devices.patch
 hxd8-core.patch
 s3c2410_fb-truecolor.patch
+s3c2440-nand-disable-hwecc.patch





More information about the commitlog mailing list