summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2019-03-22 14:26:18 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2019-04-18 08:54:02 +0200
commit070fb9744d5b7f893da263149a4f3245bb618bdf (patch)
treef12fcc2f0d8964d14c5826d9c8f533431fe57967
parent9fed311591969cb153eac2ba493875882d29ced6 (diff)
mtd: rawnand: fsl_elbc: Implement RNDOUT command
This is needed for SW ECC. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
-rw-r--r--drivers/mtd/nand/raw/fsl_elbc_nand.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c
index ffcc4241ddc6..513897ce173e 100644
--- a/drivers/mtd/nand/raw/fsl_elbc_nand.c
+++ b/drivers/mtd/nand/raw/fsl_elbc_nand.c
@@ -355,6 +355,15 @@ static void fsl_elbc_cmdfunc(struct nand_chip *chip, unsigned int command,
fsl_elbc_run_command(mtd);
return;
+ /* RNDOUT moves the pointer inside the page */
+ case NAND_CMD_RNDOUT:
+ dev_dbg(priv->dev,
+ "fsl_elbc_cmdfunc: NAND_CMD_RNDOUT, column: 0x%x.\n",
+ column);
+
+ elbc_fcm_ctrl->index = column;
+ return;
+
/* READOOB reads only the OOB because no ECC is performed. */
case NAND_CMD_READOOB:
dev_vdbg(priv->dev,