public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [U-Boot-v2][PATCH] imx27: correct READ ID cmd with 2k pages
@ 2008-12-11 13:17 frederic Rodo
  0 siblings, 0 replies; 2+ messages in thread
From: frederic Rodo @ 2008-12-11 13:17 UTC (permalink / raw)
  To: u-boot

Signed-off-by:Frederic Rodo <fred.rodo@gmail.com>
---
 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

-------------------------------------------------------------------------
Les informations pr?c?dentes peuvent ?tre confidentielles ou privil?gi?es.
Si vous n'?tes pas le destinataire pr?vu de ce mail, veuillez en notifier 
l'exp?diteur en r?pondant ? ce message puis supprimez-en toute trace 
de vos syst?mes.

TIL Technologies
Parc du Golf, Bat 43
350 rue J.R Guilibert Gautier de la Lauzi?re 
13856 AIX EN PROVENCE
Tel. : +33 4 42 37 11 77
-------------------------------------------------------------------------

^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [U-Boot] [U-Boot-v2][PATCH] imx27: correct READ ID cmd with 2k pages
@ 2008-12-15 12:51 frederic rodo
  0 siblings, 0 replies; 2+ messages in thread
From: frederic rodo @ 2008-12-15 12:51 UTC (permalink / raw)
  To: u-boot

Signed-off-by:Frederic Rodo <fred.rodo@gmail.com> <fred.rodo@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-15 12:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 13:17 [U-Boot] [U-Boot-v2][PATCH] imx27: correct READ ID cmd with 2k pages frederic Rodo
  -- strict thread matches above, loose matches on Subject: below --
2008-12-15 12:51 frederic rodo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox