mtd: nand: pxa3xx: Add address support for READID command
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 14 May 2013 11:15:24 +0000 (08:15 -0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 19:58:10 +0000 (20:58 +0100)
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>
drivers/mtd/nand/pxa3xx_nand.c

index e4e697ff861a140307f511ec6fe7826be8a88479..36780e21419637e4ce26acd3a31e5f39f0e1ebbd 100644 (file)
@@ -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;