mtd: rawnand: qcom: Add helper to configure location register
authorMd Sadre Alam <mdalam@codeaurora.org>
Tue, 23 Feb 2021 19:39:00 +0000 (01:09 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:30 +0000 (09:37 +0100)
commite7a307f21a514ce7aacee492011589999456d820
tree8ce0fbe7a06624e931c83d5c49ab895d63d93ce0
parent622d3fc8de7d88def6e2b7cb00432e9c7c595c0b
mtd: rawnand: qcom: Add helper to configure location register

Create a nandc_set_read_loc() helper to abstract the
configuration of the location register.

QPIC v2 onwards features a separate location register
for the last codeword, so introducing this extra helper
which will simplify the addition of QPIC v2 support.

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-4-git-send-email-mdalam@codeaurora.org
drivers/mtd/nand/raw/qcom_nandc.c