PATCH : nand_imx.c : add reset command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sascha,

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.

Eric

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

Signed-off-by: Eric Benard <eric@xxxxxxxxxx>
--
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);
                break;


_______________________________________________
u-boot-v2 mailing list
u-boot-v2@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/u-boot-v2

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux