]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: rawnand: fsl_elbc: Implement RNDOUT command
authorPali Rohár <pali@kernel.org>
Mon, 4 Apr 2022 16:17:18 +0000 (18:17 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
This is needed for SW ECC.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/mtd/nand/raw/fsl_elbc_nand.c

index ddfd75d32d069766edf23760a520af896c7fd147..f8698ec0158a247dceedf49fa15bfaa7cfbbcb73 100644 (file)
@@ -312,6 +312,14 @@ static void fsl_elbc_cmdfunc(struct mtd_info *mtd, unsigned int command,
                fsl_elbc_run_command(mtd);
                return;
 
+       /* RNDOUT moves the pointer inside the page */
+       case NAND_CMD_RNDOUT:
+               vdbg("fsl_elbc_cmdfunc: NAND_CMD_RNDOUT, column: 0x%x.\n",
+                    column);
+
+               ctrl->index = column;
+               return;
+
        /* READOOB reads only the OOB because no ECC is performed. */
        case NAND_CMD_READOOB:
                vdbg("fsl_elbc_cmdfunc: NAND_CMD_READOOB, page_addr:"