diff options
author | mirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-12-12 00:02:36 +0000 |
---|---|---|
committer | mirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-12-12 00:02:36 +0000 |
commit | cc3146824acbf585f487a803b4a2eadf36b9b47d (patch) | |
tree | efab142ef89b35ce42e8a79e028eff15be362af8 /target/linux/s3c24xx/patches/0041-s3c2440-nand-disable-hwecc.patch.patch | |
parent | 22b3854919b7cb44d725eb7a7efd018ad9aec25c (diff) |
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches/0041-s3c2440-nand-disable-hwecc.patch.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches/0041-s3c2440-nand-disable-hwecc.patch.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0041-s3c2440-nand-disable-hwecc.patch.patch b/target/linux/s3c24xx/patches/0041-s3c2440-nand-disable-hwecc.patch.patch new file mode 100755 index 0000000000..c6167f990b --- /dev/null +++ b/target/linux/s3c24xx/patches/0041-s3c2440-nand-disable-hwecc.patch.patch @@ -0,0 +1,28 @@ +From bc0d09dd89a8837b9a4eeb63585caded6b290cf9 Mon Sep 17 00:00:00 2001 +From: mokopatches <mokopatches@openmoko.org> +Date: Fri, 25 Jul 2008 22:21:22 +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 6e7a5b9..8e1e482 100644 +--- a/drivers/mtd/nand/s3c2410.c ++++ b/drivers/mtd/nand/s3c2410.c +@@ -665,7 +665,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.3 + |