Patchwork [4/5] mtd: nand: pxa3xx: Add address support for READID command

login
register
mail settings
Submitter Ezequiel Garcia
Date May 14, 2013, 11:15 a.m.
Message ID <1368530125-12959-5-git-send-email-elezegarcia@gmail.com>
Download mbox | patch
Permalink /patch/243859/
State New
Headers show

Comments

Ezequiel Garcia - May 14, 2013, 11:15 a.m.
From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>

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>
---
 drivers/mtd/nand/pxa3xx_nand.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index e4e697f..36780e2 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;