[U-Boot] [U-Boot-v2][PATCH] imx27: correct READ ID cmd with 2k pages
frederic rodo
fred.rodo at gmail.com
Mon Dec 15 13:51:17 CET 2008
Signed-off-by:Frederic Rodo <fred.rodo at gmail.com> <fred.rodo at gmail.com>
Date: Thu, 11 Dec 2008 13:05:53 +0100
Subject: [PATCH] correct send_id with 2k page
---
drivers/nand/nand_imx.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c
index 3bf67de..fbef9b7 100644
--- a/drivers/nand/nand_imx.c
+++ b/drivers/nand/nand_imx.c
@@ -315,6 +315,9 @@ static void send_read_id(struct imx_nand_host *host)
/* Wait for operation to complete */
wait_op_done(host, TROP_US_DELAY, 0);
+ /* correct 2 send_read_id successive */
+ host->col_addr = 0;
+
if (this->options & NAND_BUSWIDTH_16) {
volatile u16 *mainbuf = host->regs + MAIN_AREA0;
@@ -865,7 +868,7 @@ static void imx_nand_command(struct mtd_info *mtd,
unsigned command,
* the full page.
*/
send_addr(host, 0);
- if (host->pagesize_2k)
+ if ((host->pagesize_2k) && (command != NAND_CMD_READID))
/* another col addr cycle for 2k page */
send_addr(host, 0);
}
--
1.4.4.4
More information about the U-Boot
mailing list