From: Wolfgang Denk Date: Wed, 04 Feb 2009 22:22:53 +0100 Subject: [U-Boot] [PATCH] nand_base: Add timeout for NAND reset command In-Reply-To: <4989FE57.80404@freescale.com> References: <1233776842-23379-1-git-send-email-ptyser@xes-inc.com> <4989F25A.6090400@freescale.com> <1233778972.7067.261.camel@localhost.localdomain> <4989FE57.80404@freescale.com> Message-ID: <20090204212253.27C538322908@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Scott Wood, In message <4989FE57.80404@freescale.com> you wrote: > Peter Tyser wrote: > > The 25ns was calculated based on the addition of trp and trhoh from the > > Micron MT29F8G08 datasheet. Based on the timing diagram for a "Read > > Status" cycle I thought this would be the minimum cycle time needed to > > read the chip's status. Other chips (ST, Samsung) I glanced at had > 25 > > ns read status times as well. > > > > I had tried using get_timer() (I believe nand_wait() would have been > > perfect to use), but that didn't work due to interrupts being disabled > > when NAND is probed. I didn't consider using get_ticks()... That seems > > much better. Is get_ticks() available for all platforms when NAND is > > initialized? get_ticks() not a public interface. It should not be used in any common code. Please use get_timer(). Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You can do this in a number of ways. IBM chose to do all of them. Why do you find that funny? -- D. Taylor, Computer Science 350