Advertisement
Guest User

Untitled

a guest
Dec 4th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c
  2. index 5e7e6b3..4cdb024 100644
  3. --- a/drivers/mtd/nand/omap_gpmc.c
  4. +++ b/drivers/mtd/nand/omap_gpmc.c
  5. @@ -4,7 +4,7 @@
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. -
  10. +#define DEBUG
  11. #include <common.h>
  12. #include <asm/io.h>
  13. #include <asm/errno.h>
  14. @@ -926,9 +926,15 @@ int __maybe_unused omap_nand_switch_ecc(uint32_t hardware, uint32_t eccstrength)
  15. OMAP_ECC_HAM1_CODE_HW,
  16. mtd->writesize, mtd->oobsize);
  17. } else if (eccstrength == 8) {
  18. +#ifdef CONFIG_NAND_OMAP_ELM
  19. err = omap_select_ecc_scheme(nand,
  20. OMAP_ECC_BCH8_CODE_HW,
  21. mtd->writesize, mtd->oobsize);
  22. +#else
  23. + err = omap_select_ecc_scheme(nand,
  24. + OMAP_ECC_BCH8_CODE_HW_DETECTION_SW,
  25. + mtd->writesize, mtd->oobsize);
  26. +#endif
  27. } else {
  28. printf("nand: error: unsupported ECC scheme\n");
  29. return -EINVAL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement