]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/nand/sunxi_nand_spl.c
sunxi_nand_spl: Do not bother writing the spare-area reg in syndrome mode
[karo-tx-uboot.git] / drivers / mtd / nand / sunxi_nand_spl.c
index 56c0be02f5b6c8ac93b979447aa126203a44eae4..f6f49289f8f69a3ad47965fab482d222256a27fa 100644 (file)
@@ -256,10 +256,7 @@ static void nand_read_page(unsigned int real_addr, dma_addr_t dst,
        val = readl(SUNXI_NFC_BASE + NFC_CTL);
        writel(val | NFC_CTL_RAM_METHOD, SUNXI_NFC_BASE + NFC_CTL);
 
-       if (syndrome) {
-               writel(CONFIG_NAND_SUNXI_SPL_ECC_PAGE_SIZE,
-                      SUNXI_NFC_BASE + NFC_SPARE_AREA);
-       } else {
+       if (!syndrome) {
                oob_offset = CONFIG_NAND_SUNXI_SPL_PAGE_SIZE
                        + (column / CONFIG_NAND_SUNXI_SPL_ECC_PAGE_SIZE)
                        * ecc_off;