mtd: mxc_nand: add RESET command support
authorEric Benard <eric@eukrea.com>
Wed, 9 Dec 2009 11:12:43 +0000 (12:12 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 26 Feb 2010 15:18:12 +0000 (15:18 +0000)
mxc_nand driver must support the RESET Command in order to support
Micron NAND which need a reset before any other command.

Signed-off-by: Eric Benard <eric@eukrea.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c

index 970ce6bd06a878ef574944a079b974beca853d5f..06cc378196b5806e04779906bd78b31e35679af1 100644 (file)
@@ -638,6 +638,7 @@ static void mxc_nand_command(struct mtd_info *mtd, unsigned command,
 
        case NAND_CMD_ERASE1:
        case NAND_CMD_ERASE2:
+       case NAND_CMD_RESET:
                send_cmd(host, command, false);
                mxc_do_addr_cycle(mtd, column, page_addr);