From: John Linn Date: Mon, 19 Dec 2011 20:35:55 +0000 (-0800) Subject: Xilinx: ARM: NAND: wait for device ready after device reset X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4cc0feaa60f83650134ea72f5522691c57d34a34;p=thirdparty%2Fu-boot.git 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. --- 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;