Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c
- index 5e7e6b3..4cdb024 100644
- --- a/drivers/mtd/nand/omap_gpmc.c
- +++ b/drivers/mtd/nand/omap_gpmc.c
- @@ -4,7 +4,7 @@
- *
- * SPDX-License-Identifier: GPL-2.0+
- */
- -
- +#define DEBUG
- #include <common.h>
- #include <asm/io.h>
- #include <asm/errno.h>
- @@ -926,9 +926,15 @@ int __maybe_unused omap_nand_switch_ecc(uint32_t hardware, uint32_t eccstrength)
- OMAP_ECC_HAM1_CODE_HW,
- mtd->writesize, mtd->oobsize);
- } else if (eccstrength == 8) {
- +#ifdef CONFIG_NAND_OMAP_ELM
- err = omap_select_ecc_scheme(nand,
- OMAP_ECC_BCH8_CODE_HW,
- mtd->writesize, mtd->oobsize);
- +#else
- + err = omap_select_ecc_scheme(nand,
- + OMAP_ECC_BCH8_CODE_HW_DETECTION_SW,
- + mtd->writesize, mtd->oobsize);
- +#endif
- } else {
- printf("nand: error: unsupported ECC scheme\n");
- return -EINVAL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement