]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
davinci: DM355: Update NAND driver platform data
authorSneha Narnakaje <nsnehaprabha@ti.com>
Thu, 17 Sep 2009 02:59:48 +0000 (22:59 -0400)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 25 Nov 2009 18:21:24 +0000 (10:21 -0800)
This patch updates the NAND driver platform data to use 4-bit ECC and the
ECC_HW/ECC_HW_OOB_FIRST modes.

Signed-off-by: Sneha Narnakaje <nsnehaprabha@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/board-dm355-evm.c

index 77e806798822714c094e0d0660b635ea286f505d..f87ef583c2947bc6ca4a9dbbc88e2b737ecf5ac7 100644 (file)
@@ -86,8 +86,9 @@ static struct davinci_nand_pdata davinci_nand_data = {
        .mask_chipsel           = BIT(14),
        .parts                  = davinci_nand_partitions,
        .nr_parts               = ARRAY_SIZE(davinci_nand_partitions),
-       .ecc_mode               = NAND_ECC_HW_SYNDROME,
+       .ecc_mode               = NAND_ECC_HW,
        .options                = NAND_USE_FLASH_BBT,
+       .ecc_bits               = 4,
 };
 
 static struct resource davinci_nand_resources[] = {