public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] waiting for timeouts in FPGA code?
@ 2004-02-24 17:07 Steven Scholz
  2004-02-24 22:25 ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Steven Scholz @ 2004-02-24 17:07 UTC (permalink / raw)
  To: u-boot

Hi there ,

in the U-Boot FPGA code timeouts are realized by

if (get_timer (ts) > CFG_FPGA_WAIT{_INIT})
	...

while CFG_FPGA_WAIT{_INIT} is supposed to be the timeout in milliseconds.
This does not work for the AT91RM9200. Instead of using

#define CFG_FPGA_WAIT 10

I have to use

#define CFG_FPGA_WAIT CFG_HZ/10

Is CFG_HZ defined for all other architectures?
Should we use CFG_HZ instead of hardcoded numbers?

Thanks.

-- 
Steven Scholz

imc Measurement & Control               imc Me?systeme GmbH
Voltastr. 5                             Voltastr. 5
13355 Berlin                            13355 Berlin
Germany                                 Deutschland

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

end of thread, other threads:[~2004-02-27  0:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-24 17:07 [U-Boot-Users] waiting for timeouts in FPGA code? Steven Scholz
2004-02-24 22:25 ` Wolfgang Denk
2004-02-25  9:05   ` Steven Scholz
2004-02-27  0:00     ` Wolfgang Denk
2004-02-25 12:49   ` Steven Scholz
2004-02-27  0:09     ` Wolfgang Denk

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