aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1048-s3c2440-nand-disable-hwecc.patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
commit614683faf8029100802db06a825648d0b6490285 (patch)
tree7401b135dc7ce24ff0175e67e0f2ce7f96296ff0 /target/linux/s3c24xx/patches-2.6.24/1048-s3c2440-nand-disable-hwecc.patch.patch
parent4a018d2445c5f249179ff82c8fffb0e3b717f738 (diff)
downloadupstream-614683faf8029100802db06a825648d0b6490285.tar.gz
upstream-614683faf8029100802db06a825648d0b6490285.tar.bz2
upstream-614683faf8029100802db06a825648d0b6490285.zip
changed Makefile and profiles, added patches for kernel 2.6.24 (stable-branch of Openmoko)
SVN-Revision: 13613
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1048-s3c2440-nand-disable-hwecc.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1048-s3c2440-nand-disable-hwecc.patch.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1048-s3c2440-nand-disable-hwecc.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1048-s3c2440-nand-disable-hwecc.patch.patch
new file mode 100644
index 0000000000..f939f8baf2
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1048-s3c2440-nand-disable-hwecc.patch.patch
@@ -0,0 +1,28 @@
+From 1d89da736ed33d3f7c398fb9f8dfddecb7c7c7a9 Mon Sep 17 00:00:00 2001
+From: mokopatches <mokopatches@openmoko.org>
+Date: Sun, 13 Apr 2008 07:23:48 +0100
+Subject: [PATCH] s3c2440-nand-disable-hwecc.patch
+ 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
+
+---
+ drivers/mtd/nand/s3c2410.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
+index 5c1c09d..f83bed9 100644
+--- a/drivers/mtd/nand/s3c2410.c
++++ b/drivers/mtd/nand/s3c2410.c
+@@ -658,7 +658,7 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info,
+ 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;
+--
+1.5.6.5
+