]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: NAND: wait for device ready after device reset
authorJohn Linn <john.linn@xilinx.com>
Mon, 19 Dec 2011 20:35:55 +0000 (12:35 -0800)
committerJohn Linn <john.linn@xilinx.com>
Mon, 19 Dec 2011 20:35:55 +0000 (12:35 -0800)
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

index f6629062511eea59b8071757afe17f961c46e332..0b8fa102648ca0ec97fe3815842801667f3c4885 100644 (file)
@@ -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;