[U-Boot] [PATCH] nand_base: Add timeout for NAND reset command

Wolfgang Denk wd at denx.de
Wed Feb 4 22:53:26 CET 2009


Dear Peter Tyser,

In message <1233782967.7067.338.camel at localhost.localdomain> you wrote:
>
> > get_ticks() not a public interface. It should not be used in any
> > common code.
> > 
> > Please use get_timer().

Ah, I see.

> The problem is that the NAND code is used prior to interrupts being
> enabled, thus we can't use get_timer().  I used a hokey delay based on
> (read times * number of iterations).  Whats worse, my hokey loop or
> get_ticks()?

I can't tell. Thing is that get_ticks() may or may not exist. I don't
think all architectures have it. I don't see it for ixp, leon*, mcf*,
microblaze, mips, nios*, ...

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
"There is nothing new under the sun, but there are lots of old things
we don't know yet."                                  - Ambrose Bierce


More information about the U-Boot mailing list