[U-Boot] arm: omap: Fix switching back to nandecc sw.

Jeroen Hofstee dasuboot at myspectrum.nl
Fri Aug 10 22:06:24 CEST 2012


Switching back to nandecc sw fails to write correctly. A fix for this is
already mentioned in the thread below, lets fix it.

mentioned in http://lists.denx.de/pipermail/u-boot/2012-February/119002.html

Signed-off-by: Jeroen Hofstee <jhofstee at victronenergy.com>
---
  drivers/mtd/nand/omap_gpmc.c |    1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c
index ca868ef..71aec1a 100644
--- a/drivers/mtd/nand/omap_gpmc.c
+++ b/drivers/mtd/nand/omap_gpmc.c
@@ -280,6 +280,7 @@ void omap_nand_switch_ecc(int32_t hardware)
          omap_hwecc_init(nand);
          printf("HW ECC selected\n");
      } else {
+        nand->ecc.size = 0;
          nand->ecc.mode = NAND_ECC_SOFT;
          /* Use mtd default settings */
          nand->ecc.layout = NULL;
-- 
1.7.9.5



More information about the U-Boot mailing list