mtd: nand: qcom: support for different DEV_CMD register offsets
authorAbhishek Sahu <absahu@codeaurora.org>
Thu, 17 Aug 2017 12:07:47 +0000 (17:37 +0530)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 23 Aug 2017 14:49:29 +0000 (16:49 +0200)
commitcc409b9a8ec5e88d6f712c535d88b14765f234c4
tree7bad0f9d000f0b191fa552aaf2f91ed9ad553804
parent4e2f6c52f4840b0d2ad1a62b71bf139cb0ec0915
mtd: nand: qcom: support for different DEV_CMD register offsets

The FLASH_DEV_CMD registers starting offset is not same in
different QPIC NAND controller versions. This patch adds
the starting offset in NAND controller properties and uses
the same for calculating the actual offset of these registers.

Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/qcom_nandc.c