]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce58bbde82e042efecc29e6b4f02caeb68f480db
tree8ce0fbe7a06624e931c83d5c49ab895d63d93ce0
parenta1359add43e01f4af08ec488841c1423d8697317
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