
4 Feb
2009
4 Feb
'09
10:53 p.m.
Dear Peter Tyser,
In message 1233782967.7067.338.camel@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@denx.de
"There is nothing new under the sun, but there are lots of old things
we don't know yet." - Ambrose Bierce