Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 336de7b1 authored by Boris Brezillon's avatar Boris Brezillon
Browse files

mtd: nand: enable ECC pipelining



When the NAND controller operates in DMA mode it can pipeline ECC
operations which improves the throughput.

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent dd26a458
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -742,7 +742,8 @@ static void sunxi_nfc_hw_ecc_enable(struct mtd_info *mtd)
	ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL);
	ecc_ctl &= ~(NFC_ECC_MODE_MSK | NFC_ECC_PIPELINE |
		     NFC_ECC_BLOCK_SIZE_MSK);
	ecc_ctl |= NFC_ECC_EN | NFC_ECC_MODE(data->mode) | NFC_ECC_EXCEPTION;
	ecc_ctl |= NFC_ECC_EN | NFC_ECC_MODE(data->mode) | NFC_ECC_EXCEPTION |
		   NFC_ECC_PIPELINE;

	writel(ecc_ctl, nfc->regs + NFC_REG_ECC_CTL);
}