瀏覽代碼

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>
Ezequiel Garcia 12 年之前
父節點
當前提交
d14231f198
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/mtd/nand/pxa3xx_nand.c

+ 1 - 0
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)
 		info->ndcb0 |= NDCB0_CMD_TYPE(3)
 				| NDCB0_ADDR_CYC(1)
 				| NDCB0_ADDR_CYC(1)
 				| cmd;
 				| cmd;
+		info->ndcb1 = (column & 0xFF);
 
 
 		info->data_size = 8;
 		info->data_size = 8;
 		break;
 		break;