Skip to contentSkip to conversation

NAND Send RESET before initial READID

PATCH New David George 2 participants 2 messages Oct 17, 2008 – Oct 23, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NAND Send RESET before initial READID

We had a problem where NAND device ID would be corrupted after a power-cycle. According to the Micron datasheet it requires a RESET after power-up before any commands may be issued. Without this patch the manufacturer ID would be correct, but the device ID, cellinfo and extra ID would be incorrect.

---

drivers/mtd/nand/nand_base.c +0 -0
index 0913bb8..3b9552d 100644
@@ -2360,6 +2360,12 @@ static struct nand_flash_dev 

*nand_get_flash_type(struct mtd_info *mtd,

        /* Select the device */
        chip->select_chip(mtd, 0);

+ /*

+        * Micron needs a RESET after power up before issuing
+        * any other commands
+        */
+       chip->cmdfunc(mtd, NAND_CMD_RESET, -1, -1);
+
        /* Send the command for reading device ID */
        chip->cmdfunc(mtd, NAND_CMD_READID, 0x00, -1);
Signature · 3 lines
David George
Hark Technologies
http://harktech.com
#1 lore raw

PATCH 1/1 NAND Send RESET before initial READID

Quoted 7 lines · David George

We had a problem where NAND device ID would be corrupted after a power-cycle. According to the Micron datasheet it requires a RESET after power-up before any commands may be issued. Without this patch the manufacturer ID would be correct, but the device ID, cellinfo and extra ID would be incorrect.

Patch is whitespace damaged.

Applied by hand to u-boot-nand-flash, but try to preserve the whitespace next time.

-Scott