From 4cc0feaa60f83650134ea72f5522691c57d34a34 Mon Sep 17 00:00:00 2001 From: John Linn Date: Mon, 19 Dec 2011 12:35:55 -0800 Subject: [PATCH] Xilinx: ARM: NAND: wait for device ready after device reset When moving from PEEP to Zynq, the ID of the flash was not being read at all, only zeroes. The driver was not waiting for the device to be ready after resetting the device and since Zynq is so much faster it was a problem. --- board/xilinx/dfe/xilinx_nandpss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/xilinx/dfe/xilinx_nandpss.c b/board/xilinx/dfe/xilinx_nandpss.c index f6629062511..0b8fa102648 100644 --- a/board/xilinx/dfe/xilinx_nandpss.c +++ b/board/xilinx/dfe/xilinx_nandpss.c @@ -879,7 +879,7 @@ static void xnandpss_cmd_function(struct mtd_info *mtd, unsigned int command, ndelay(100); - if (command == NAND_CMD_READ0) { + if ((command == NAND_CMD_READ0) || (command == NAND_CMD_RESET)) { while (!chip->dev_ready(mtd)) ; return; -- 2.47.3