mtd: rawnand: qcom: update last code word register
authorMd Sadre Alam <mdalam@codeaurora.org>
Tue, 23 Feb 2021 19:39:01 +0000 (01:09 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:30 +0000 (09:37 +0100)
commit503ee5aad43054a26cfd5cc592a31270c05539cd
tree5fcce23aa68f1e223b426661a0ea52b331946943
parente7a307f21a514ce7aacee492011589999456d820
mtd: rawnand: qcom: update last code word register

From QPIC v2 onwards a new register got added to read last
code word.Add support for this READ_LOCATION_LAST_CW_n
register.

In the case of QPIC v2, codewords 0, 1 and 2 will be accessed
through READ_LOCATION_n, while codeword 3 will be accessed
through READ_LOCATION_LAST_CW_n.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1614109141-7531-5-git-send-email-mdalam@codeaurora.org
drivers/mtd/nand/raw/qcom_nandc.c