summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/pxa3xx_nand.c
diff options
context:
space:
mode:
authorEzequiel Garcia2013-05-14 13:15:24 +0200
committerDavid Woodhouse2013-08-05 21:58:10 +0200
commitd14231f1985f31441777a2dbda055dc8499f6c93 (patch)
tree9c7978955f0508d062a3e5fd8e50279c99b813f3 /drivers/mtd/nand/pxa3xx_nand.c
parentmtd: nand: pxa3xx: Fix MODULE_DEVICE_TABLE declaration (diff)
downloadkernel-qcow2-linux-d14231f1985f31441777a2dbda055dc8499f6c93.tar.gz
kernel-qcow2-linux-d14231f1985f31441777a2dbda055dc8499f6c93.tar.xz
kernel-qcow2-linux-d14231f1985f31441777a2dbda055dc8499f6c93.zip
mtd: nand: pxa3xx: Add address support for READID command
This allows to support READID ONFI command which sends 0x20 as address together with the 0x90 READID command. This is required to detect ONFI compliant devices. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Tested-by: Nikita Kiryanov <nikita@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Reviewed-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/pxa3xx_nand.c')
-rw-r--r--drivers/mtd/nand/pxa3xx_nand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index e4e697ff861a..36780e214196 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -596,6 +596,7 @@ static int prepare_command_pool(struct pxa3xx_nand_info *info, int command,
info->ndcb0 |= NDCB0_CMD_TYPE(3)
| NDCB0_ADDR_CYC(1)
| cmd;
+ info->ndcb1 = (column & 0xFF);
info->data_size = 8;
break;