PATCH : nand_imx.c : add reset command

Eric Bénard eric at
Mon Dec 7 16:58:11 EST 2009


in your last NAND driver rework, you removed the RESET command.
The reset commant is necessary in order to get Micron Nand running as 
they need a RESET command before being able to get any command.
All my test done this weekend were fine as I did boot the board with the 
previous uboot which once resetted the NAND ... but today after a 
powercycle, I wasn't able to read the ID of the flash ...
Here is the patch which fix this behaviour.


nand_imx driver must support the RESET Command in order to support 
Micron NAND.

Signed-off-by: Eric Benard <eric at>
diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c
index edd7cdf..22d1870 100644
--- a/drivers/nand/nand_imx.c
+++ b/drivers/nand/nand_imx.c
@@ -748,6 +748,7 @@ static void imx_nand_command(struct mtd_info *mtd, 
unsigned command

         case NAND_CMD_ERASE1:
         case NAND_CMD_ERASE2:
+       case NAND_CMD_RESET:
                 send_cmd(host, command);
                 mxc_do_addr_cycle(mtd, column, page_addr);

More information about the u-boot-v2 mailing list