From: Ezequiel Garcia Date: Tue, 14 May 2013 11:15:24 +0000 (-0300) Subject: mtd: nand: pxa3xx: Add address support for READID command X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d14231f1985f31441777a2dbda055dc8499f6c93;p=linux-beck.git 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 Tested-by: Nikita Kiryanov Acked-by: Igor Grinberg Reviewed-by: Haojian Zhuang Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- 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;